📄 basecflevel1.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the c_flevel1 table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="c_flevel1"
*/
public abstract class BaseCFlevel1 implements Serializable {
public static String REF = "CFlevel1";
public static String PROP_FLAG = "flag";
public static String PROP_T_SECTNAME = "TSectname";
// constructors
public BaseCFlevel1 () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseCFlevel1 (java.lang.Integer tSectionid) {
this.setTSectionid(tSectionid);
initialize();
}
/**
* Constructor for required fields
*/
public BaseCFlevel1 (
java.lang.Integer tSectionid,
java.lang.String flag,
java.lang.String tSectname) {
this.setTSectionid(tSectionid);
this.setFlag(flag);
this.setTSectname(tSectname);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tSectionid;
// fields
private java.lang.String flag;
private java.lang.String tSectname;
// collections
private java.util.Set cFlevel2s;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="t_sectionid"
*/
public java.lang.Integer getTSectionid () {
return tSectionid;
}
/**
* Set the unique identifier of this class
* @param tSectionid the new ID
*/
public void setTSectionid (java.lang.Integer tSectionid) {
this.tSectionid = tSectionid;
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: t_sectname
*/
public java.lang.String getTSectname () {
return tSectname;
}
/**
* Set the value related to the column: t_sectname
* @param tSectname the t_sectname value
*/
public void setTSectname (java.lang.String tSectname) {
this.tSectname = tSectname;
}
/**
* Return the value associated with the column: CFlevel2s
*/
public java.util.Set getCFlevel2s () {
return cFlevel2s;
}
/**
* Set the value related to the column: CFlevel2s
* @param cFlevel2s the CFlevel2s value
*/
public void setCFlevel2s (java.util.Set cFlevel2s) {
this.cFlevel2s = cFlevel2s;
}
public void addToCFlevel2s (cn.hope.front.pojo.CFlevel2 cFlevel2) {
if (null == getCFlevel2s()) setCFlevel2s(new java.util.HashSet());
getCFlevel2s().add(cFlevel2);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.CFlevel1)) return false;
else {
cn.hope.front.pojo.CFlevel1 cFlevel1 = (cn.hope.front.pojo.CFlevel1) obj;
if (null == this.getTSectionid() || null == cFlevel1.getTSectionid()) return false;
else return (this.getTSectionid().equals(cFlevel1.getTSectionid()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTSectionid()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTSectionid().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -