📄 basemlog.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_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="m_log"
*/
public abstract class BaseMLog implements Serializable {
public static String REF = "MLog";
public static String PROP_ACTION = "action";
public static String PROP_FLAG = "flag";
public static String PROP_IP = "ip";
public static String PROP_TIME = "time";
// constructors
public BaseMLog () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMLog (java.lang.Integer logId) {
this.setLogId(logId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMLog (
java.lang.Integer logId,
java.lang.String action,
java.lang.String flag,
java.lang.String ip,
java.util.Date time) {
this.setLogId(logId);
this.setAction(action);
this.setFlag(flag);
this.setIp(ip);
this.setTime(time);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer logId;
// fields
private java.lang.String action;
private java.lang.String flag;
private java.lang.String ip;
private java.util.Date time;
// many to one
private cn.hope.front.pojo.TInfo tInfo;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="log_id"
*/
public java.lang.Integer getLogId () {
return logId;
}
/**
* Set the unique identifier of this class
* @param logId the new ID
*/
public void setLogId (java.lang.Integer logId) {
this.logId = logId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: action
*/
public java.lang.String getAction () {
return action;
}
/**
* Set the value related to the column: action
* @param action the action value
*/
public void setAction (java.lang.String action) {
this.action = action;
}
/**
* Return the value associated with the column: flag
*/
public java.lang.String getFlag () {
return flag;
}
/**
* Set the value related to the column: flag
* @param flag the flag value
*/
public void setFlag (java.lang.String flag) {
this.flag = flag;
}
/**
* Return the value associated with the column: ip
*/
public java.lang.String getIp () {
return ip;
}
/**
* Set the value related to the column: ip
* @param ip the ip value
*/
public void setIp (java.lang.String ip) {
this.ip = ip;
}
/**
* Return the value associated with the column: time
*/
public java.util.Date getTime () {
return time;
}
/**
* Set the value related to the column: time
* @param time the time value
*/
public void setTime (java.util.Date time) {
this.time = time;
}
/**
* Return the value associated with the column: t_id
*/
public cn.hope.front.pojo.TInfo getTInfo () {
return tInfo;
}
/**
* Set the value related to the column: t_id
* @param tInfo the t_id value
*/
public void setTInfo (cn.hope.front.pojo.TInfo tInfo) {
this.tInfo = tInfo;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.MLog)) return false;
else {
cn.hope.front.pojo.MLog mLog = (cn.hope.front.pojo.MLog) obj;
if (null == this.getLogId() || null == mLog.getLogId()) return false;
else return (this.getLogId().equals(mLog.getLogId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getLogId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getLogId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -