📄 basesreblog.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_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="s_reblog"
*/
public abstract class BaseSReblog implements Serializable {
public static String REF = "SReblog";
public static String PROP_FLAG = "flag";
public static String PROP_RE_CON = "reCon";
// constructors
public BaseSReblog () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSReblog (java.lang.Integer reId) {
this.setReId(reId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSReblog (
java.lang.Integer reId,
java.lang.String flag,
java.lang.String reCon) {
this.setReId(reId);
this.setFlag(flag);
this.setReCon(reCon);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer reId;
// fields
private java.lang.String flag;
private java.lang.String reCon;
// many to one
private cn.hope.mana.pojo.Student student;
private cn.hope.mana.pojo.TInfo tInfo;
private cn.hope.mana.pojo.SBlog sBlog;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="re_id"
*/
public java.lang.Integer getReId () {
return reId;
}
/**
* Set the unique identifier of this class
* @param reId the new ID
*/
public void setReId (java.lang.Integer reId) {
this.reId = reId;
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: re_con
*/
public java.lang.String getReCon () {
return reCon;
}
/**
* Set the value related to the column: re_con
* @param reCon the re_con value
*/
public void setReCon (java.lang.String reCon) {
this.reCon = reCon;
}
/**
* 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;
}
/**
* 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: sb_id
*/
public cn.hope.mana.pojo.SBlog getSBlog () {
return sBlog;
}
/**
* Set the value related to the column: sb_id
* @param sBlog the sb_id value
*/
public void setSBlog (cn.hope.mana.pojo.SBlog sBlog) {
this.sBlog = sBlog;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.SReblog)) return false;
else {
cn.hope.mana.pojo.SReblog sReblog = (cn.hope.mana.pojo.SReblog) obj;
if (null == this.getReId() || null == sReblog.getReId()) return false;
else return (this.getReId().equals(sReblog.getReId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getReId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getReId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -