📄 basetreblog.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_reblog table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="t_reblog"
*/
public abstract class BaseTReblog implements Serializable {
public static String REF = "TReblog";
public static String PROP_FLAG = "flag";
public static String PROP_TR_CON = "trCon";
public static String PROP_TR_TIME = "trTime";
// constructors
public BaseTReblog () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTReblog (java.lang.Integer trId) {
this.setTrId(trId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTReblog (
java.lang.Integer trId,
java.lang.String flag,
java.lang.String trCon,
java.util.Date trTime) {
this.setTrId(trId);
this.setFlag(flag);
this.setTrCon(trCon);
this.setTrTime(trTime);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer trId;
// fields
private java.lang.String flag;
private java.lang.String trCon;
private java.util.Date trTime;
// many to one
private cn.hope.mana.pojo.TBlog tBlog;
private cn.hope.mana.pojo.TInfo tInfo;
private cn.hope.mana.pojo.Student student;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tr_id"
*/
public java.lang.Integer getTrId () {
return trId;
}
/**
* Set the unique identifier of this class
* @param trId the new ID
*/
public void setTrId (java.lang.Integer trId) {
this.trId = trId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* 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: tr_con
*/
public java.lang.String getTrCon () {
return trCon;
}
/**
* Set the value related to the column: tr_con
* @param trCon the tr_con value
*/
public void setTrCon (java.lang.String trCon) {
this.trCon = trCon;
}
/**
* Return the value associated with the column: tr_time
*/
public java.util.Date getTrTime () {
return trTime;
}
/**
* Set the value related to the column: tr_time
* @param trTime the tr_time value
*/
public void setTrTime (java.util.Date trTime) {
this.trTime = trTime;
}
/**
* Return the value associated with the column: tb_id
*/
public cn.hope.mana.pojo.TBlog getTBlog () {
return tBlog;
}
/**
* Set the value related to the column: tb_id
* @param tBlog the tb_id value
*/
public void setTBlog (cn.hope.mana.pojo.TBlog tBlog) {
this.tBlog = tBlog;
}
/**
* Return the value associated with the column: t_id
*/
public cn.hope.mana.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.mana.pojo.TInfo tInfo) {
this.tInfo = tInfo;
}
/**
* Return the value associated with the column: s_username
*/
public cn.hope.mana.pojo.Student getStudent () {
return student;
}
/**
* Set the value related to the column: s_username
* @param student the s_username value
*/
public void setStudent (cn.hope.mana.pojo.Student student) {
this.student = student;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.TReblog)) return false;
else {
cn.hope.mana.pojo.TReblog tReblog = (cn.hope.mana.pojo.TReblog) obj;
if (null == this.getTrId() || null == tReblog.getTrId()) return false;
else return (this.getTrId().equals(tReblog.getTrId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTrId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTrId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -