📄 basesblogtype.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_blogtype 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_blogtype"
*/
public abstract class BaseSBlogtype implements Serializable {
public static String REF = "SBlogtype";
public static String PROP_FLAG = "flag";
public static String PROP_ST_TITLE = "stTitle";
// constructors
public BaseSBlogtype () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSBlogtype (java.lang.Integer stId) {
this.setStId(stId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSBlogtype (
java.lang.Integer stId,
java.lang.String flag,
java.lang.String stTitle) {
this.setStId(stId);
this.setFlag(flag);
this.setStTitle(stTitle);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer stId;
// fields
private java.lang.String flag;
private java.lang.String stTitle;
// collections
private java.util.Set sBlogs;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="st_id"
*/
public java.lang.Integer getStId () {
return stId;
}
/**
* Set the unique identifier of this class
* @param stId the new ID
*/
public void setStId (java.lang.Integer stId) {
this.stId = stId;
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: st_title
*/
public java.lang.String getStTitle () {
return stTitle;
}
/**
* Set the value related to the column: st_title
* @param stTitle the st_title value
*/
public void setStTitle (java.lang.String stTitle) {
this.stTitle = stTitle;
}
/**
* Return the value associated with the column: SBlogs
*/
public java.util.Set getSBlogs () {
return sBlogs;
}
/**
* Set the value related to the column: SBlogs
* @param sBlogs the SBlogs value
*/
public void setSBlogs (java.util.Set sBlogs) {
this.sBlogs = sBlogs;
}
public void addToSBlogs (cn.hope.front.pojo.SBlog sBlog) {
if (null == getSBlogs()) setSBlogs(new java.util.HashSet());
getSBlogs().add(sBlog);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.SBlogtype)) return false;
else {
cn.hope.front.pojo.SBlogtype sBlogtype = (cn.hope.front.pojo.SBlogtype) obj;
if (null == this.getStId() || null == sBlogtype.getStId()) return false;
else return (this.getStId().equals(sBlogtype.getStId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getStId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getStId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -