📄 baselog.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 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"
*/
public abstract class BaseLog implements Serializable {
public static String REF = "Log";
public static String PROP_LOG_TIME = "LogTime";
public static String PROP_LOG_TYPE_NO = "LogTypeNo";
public static String PROP_LOG_DESCRIBE = "LogDescribe";
public static String PROP_ID = "Id";
public static String PROP_OPERATOR_NO = "OperatorNo";
// constructors
public BaseLog () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseLog (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseLog (
java.lang.Integer id,
com.wxd.common.popedom.persistence.entity.Operator operatorNo,
com.wxd.common.popedom.persistence.entity.LogType logTypeNo,
java.lang.String logDescribe,
java.math.BigDecimal logTime) {
this.setId(id);
this.setOperatorNo(operatorNo);
this.setLogTypeNo(logTypeNo);
this.setLogDescribe(logDescribe);
this.setLogTime(logTime);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String logDescribe;
private java.math.BigDecimal logTime;
// many to one
private com.wxd.common.popedom.persistence.entity.Operator operatorNo;
private com.wxd.common.popedom.persistence.entity.LogType logTypeNo;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="sequence"
* column="log_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_describe
*/
public java.lang.String getLogDescribe () {
return logDescribe;
}
/**
* Set the value related to the column: log_describe
* @param logDescribe the log_describe value
*/
public void setLogDescribe (java.lang.String logDescribe) {
this.logDescribe = logDescribe;
}
/**
* Return the value associated with the column: log_time
*/
public java.math.BigDecimal getLogTime () {
return logTime;
}
/**
* Set the value related to the column: log_time
* @param logTime the log_time value
*/
public void setLogTime (java.math.BigDecimal logTime) {
this.logTime = logTime;
}
/**
* Return the value associated with the column: operator_no
*/
public com.wxd.common.popedom.persistence.entity.Operator getOperatorNo () {
return operatorNo;
}
/**
* Set the value related to the column: operator_no
* @param operatorNo the operator_no value
*/
public void setOperatorNo (com.wxd.common.popedom.persistence.entity.Operator operatorNo) {
this.operatorNo = operatorNo;
}
/**
* Return the value associated with the column: log_type_no
*/
public com.wxd.common.popedom.persistence.entity.LogType getLogTypeNo () {
return logTypeNo;
}
/**
* Set the value related to the column: log_type_no
* @param logTypeNo the log_type_no value
*/
public void setLogTypeNo (com.wxd.common.popedom.persistence.entity.LogType logTypeNo) {
this.logTypeNo = logTypeNo;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.wxd.common.popedom.persistence.entity.Log)) return false;
else {
com.wxd.common.popedom.persistence.entity.Log log = (com.wxd.common.popedom.persistence.entity.Log) obj;
if (null == this.getId() || null == log.getId()) return false;
else return (this.getId().equals(log.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 + -