📄 basecdutycon.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the c_dutycon 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_dutycon"
*/
public abstract class BaseCDutycon implements Serializable {
public static String REF = "CDutycon";
public static String PROP_CD_NAME = "cdName";
public static String PROP_FLAG = "flag";
// constructors
public BaseCDutycon () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseCDutycon (java.lang.Integer cdId) {
this.setCdId(cdId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseCDutycon (
java.lang.Integer cdId,
java.lang.String cdName,
java.lang.String flag) {
this.setCdId(cdId);
this.setCdName(cdName);
this.setFlag(flag);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer cdId;
// fields
private java.lang.String cdName;
private java.lang.String flag;
// collections
private java.util.Set sJournalCs;
private java.util.Set sJournalGs;
private java.util.Set tJournalCs;
private java.util.Set tJournalGs;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="cd_id"
*/
public java.lang.Integer getCdId () {
return cdId;
}
/**
* Set the unique identifier of this class
* @param cdId the new ID
*/
public void setCdId (java.lang.Integer cdId) {
this.cdId = cdId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: cd_name
*/
public java.lang.String getCdName () {
return cdName;
}
/**
* Set the value related to the column: cd_name
* @param cdName the cd_name value
*/
public void setCdName (java.lang.String cdName) {
this.cdName = cdName;
}
/**
* 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: SJournalCs
*/
public java.util.Set getSJournalCs () {
return sJournalCs;
}
/**
* Set the value related to the column: SJournalCs
* @param sJournalCs the SJournalCs value
*/
public void setSJournalCs (java.util.Set sJournalCs) {
this.sJournalCs = sJournalCs;
}
public void addToSJournalCs (cn.hope.front.pojo.SJournal sJournal) {
if (null == getSJournalCs()) setSJournalCs(new java.util.HashSet());
getSJournalCs().add(sJournal);
}
/**
* Return the value associated with the column: SJournalGs
*/
public java.util.Set getSJournalGs () {
return sJournalGs;
}
/**
* Set the value related to the column: SJournalGs
* @param sJournalGs the SJournalGs value
*/
public void setSJournalGs (java.util.Set sJournalGs) {
this.sJournalGs = sJournalGs;
}
public void addToSJournalGs (cn.hope.front.pojo.SJournal sJournal) {
if (null == getSJournalGs()) setSJournalGs(new java.util.HashSet());
getSJournalGs().add(sJournal);
}
/**
* Return the value associated with the column: TJournalCs
*/
public java.util.Set getTJournalCs () {
return tJournalCs;
}
/**
* Set the value related to the column: TJournalCs
* @param tJournalCs the TJournalCs value
*/
public void setTJournalCs (java.util.Set tJournalCs) {
this.tJournalCs = tJournalCs;
}
public void addToTJournalCs (cn.hope.front.pojo.TJournal tJournal) {
if (null == getTJournalCs()) setTJournalCs(new java.util.HashSet());
getTJournalCs().add(tJournal);
}
/**
* Return the value associated with the column: TJournalGs
*/
public java.util.Set getTJournalGs () {
return tJournalGs;
}
/**
* Set the value related to the column: TJournalGs
* @param tJournalGs the TJournalGs value
*/
public void setTJournalGs (java.util.Set tJournalGs) {
this.tJournalGs = tJournalGs;
}
public void addToTJournalGs (cn.hope.front.pojo.TJournal tJournal) {
if (null == getTJournalGs()) setTJournalGs(new java.util.HashSet());
getTJournalGs().add(tJournal);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.CDutycon)) return false;
else {
cn.hope.front.pojo.CDutycon cDutycon = (cn.hope.front.pojo.CDutycon) obj;
if (null == this.getCdId() || null == cDutycon.getCdId()) return false;
else return (this.getCdId().equals(cDutycon.getCdId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getCdId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getCdId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -