📄 basesblog.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_blog 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_blog"
*/
public abstract class BaseSBlog implements Serializable {
public static String REF = "SBlog";
public static String PROP_FLAG = "flag";
public static String PROP_SB_CON = "sbCon";
public static String PROP_SB_DATE = "sbDate";
public static String PROP_SB_QU = "sbQu";
public static String PROP_SB_TITLE = "sbTitle";
// constructors
public BaseSBlog () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSBlog (java.lang.Integer sbId) {
this.setSbId(sbId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSBlog (
java.lang.Integer sbId,
java.lang.String flag,
java.lang.String sbCon,
java.util.Date sbDate,
java.lang.Integer sbQu,
java.lang.String sbTitle) {
this.setSbId(sbId);
this.setFlag(flag);
this.setSbCon(sbCon);
this.setSbDate(sbDate);
this.setSbQu(sbQu);
this.setSbTitle(sbTitle);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer sbId;
// fields
private java.lang.String flag;
private java.lang.String sbCon;
private java.util.Date sbDate;
private java.lang.Integer sbQu;
private java.lang.String sbTitle;
// many to one
private cn.hope.mana.pojo.Student student;
private cn.hope.mana.pojo.SBlogtype sBlogtype;
// collections
private java.util.Set sReblogs;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="sb_id"
*/
public java.lang.Integer getSbId () {
return sbId;
}
/**
* Set the unique identifier of this class
* @param sbId the new ID
*/
public void setSbId (java.lang.Integer sbId) {
this.sbId = sbId;
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: sb_con
*/
public java.lang.String getSbCon () {
return sbCon;
}
/**
* Set the value related to the column: sb_con
* @param sbCon the sb_con value
*/
public void setSbCon (java.lang.String sbCon) {
this.sbCon = sbCon;
}
/**
* Return the value associated with the column: sb_date
*/
public java.util.Date getSbDate () {
return sbDate;
}
/**
* Set the value related to the column: sb_date
* @param sbDate the sb_date value
*/
public void setSbDate (java.util.Date sbDate) {
this.sbDate = sbDate;
}
/**
* Return the value associated with the column: sb_qu
*/
public java.lang.Integer getSbQu () {
return sbQu;
}
/**
* Set the value related to the column: sb_qu
* @param sbQu the sb_qu value
*/
public void setSbQu (java.lang.Integer sbQu) {
this.sbQu = sbQu;
}
/**
* Return the value associated with the column: sb_title
*/
public java.lang.String getSbTitle () {
return sbTitle;
}
/**
* Set the value related to the column: sb_title
* @param sbTitle the sb_title value
*/
public void setSbTitle (java.lang.String sbTitle) {
this.sbTitle = sbTitle;
}
/**
* 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: st_id
*/
public cn.hope.mana.pojo.SBlogtype getSBlogtype () {
return sBlogtype;
}
/**
* Set the value related to the column: st_id
* @param sBlogtype the st_id value
*/
public void setSBlogtype (cn.hope.mana.pojo.SBlogtype sBlogtype) {
this.sBlogtype = sBlogtype;
}
/**
* Return the value associated with the column: SReblogs
*/
public java.util.Set getSReblogs () {
return sReblogs;
}
/**
* Set the value related to the column: SReblogs
* @param sReblogs the SReblogs value
*/
public void setSReblogs (java.util.Set sReblogs) {
this.sReblogs = sReblogs;
}
public void addToSReblogs (cn.hope.mana.pojo.SReblog sReblog) {
if (null == getSReblogs()) setSReblogs(new java.util.HashSet());
getSReblogs().add(sReblog);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.SBlog)) return false;
else {
cn.hope.mana.pojo.SBlog sBlog = (cn.hope.mana.pojo.SBlog) obj;
if (null == this.getSbId() || null == sBlog.getSbId()) return false;
else return (this.getSbId().equals(sBlog.getSbId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getSbId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getSbId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -