📄 baselogtype.java
字号:
package com.wxd.common.popedom.persistence.entity.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the tb_com_log_type table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="tb_com_log_type"
*/
public abstract class BaseLogType implements Serializable {
public static String REF = "LogType";
public static String PROP_LOG_TYPE_NAME = "LogTypeName";
public static String PROP_ID = "Id";
// constructors
public BaseLogType () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseLogType (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseLogType (
java.lang.Integer id,
java.lang.String logTypeName) {
this.setId(id);
this.setLogTypeName(logTypeName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String logTypeName;
// collections
private java.util.Set<com.wxd.common.popedom.persistence.entity.Log> logs;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="sequence"
* column="log_type_no"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: log_type_name
*/
public java.lang.String getLogTypeName () {
return logTypeName;
}
/**
* Set the value related to the column: log_type_name
* @param logTypeName the log_type_name value
*/
public void setLogTypeName (java.lang.String logTypeName) {
this.logTypeName = logTypeName;
}
/**
* Return the value associated with the column: Logs
*/
public java.util.Set<com.wxd.common.popedom.persistence.entity.Log> getLogs () {
return logs;
}
/**
* Set the value related to the column: Logs
* @param logs the Logs value
*/
public void setLogs (java.util.Set<com.wxd.common.popedom.persistence.entity.Log> logs) {
this.logs = logs;
}
public void addToLogs (com.wxd.common.popedom.persistence.entity.Log log) {
if (null == getLogs()) setLogs(new java.util.TreeSet<com.wxd.common.popedom.persistence.entity.Log>());
getLogs().add(log);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.wxd.common.popedom.persistence.entity.LogType)) return false;
else {
com.wxd.common.popedom.persistence.entity.LogType logType = (com.wxd.common.popedom.persistence.entity.LogType) obj;
if (null == this.getId() || null == logType.getId()) return false;
else return (this.getId().equals(logType.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -