📄 basethomework.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_homework table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="t_homework"
*/
public abstract class BaseTHomework implements Serializable {
public static String REF = "THomework";
public static String PROP_FLAG = "flag";
public static String PROP_T_HWDATE = "THwdate";
public static String PROP_T_HWSDATE = "THwsdate";
public static String PROP_T_HWTITLE = "THwtitle";
// constructors
public BaseTHomework () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTHomework (java.lang.Integer tHwid) {
this.setTHwid(tHwid);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTHomework (
java.lang.Integer tHwid,
java.lang.String flag,
java.util.Date tHwdate,
java.util.Date tHwsdate,
java.lang.String tHwtitle) {
this.setTHwid(tHwid);
this.setFlag(flag);
this.setTHwdate(tHwdate);
this.setTHwsdate(tHwsdate);
this.setTHwtitle(tHwtitle);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tHwid;
// fields
private java.lang.String flag;
private java.util.Date tHwdate;
private java.util.Date tHwsdate;
private java.lang.String tHwtitle;
// many to one
private cn.hope.front.pojo.CSubject cSubject;
private cn.hope.front.pojo.TInfo tInfo;
// collections
private java.util.Set sRehws;
private java.util.Set tClassHws;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="t_hwid"
*/
public java.lang.Integer getTHwid () {
return tHwid;
}
/**
* Set the unique identifier of this class
* @param tHwid the new ID
*/
public void setTHwid (java.lang.Integer tHwid) {
this.tHwid = tHwid;
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_hwdate
*/
public java.util.Date getTHwdate () {
return tHwdate;
}
/**
* Set the value related to the column: t_hwdate
* @param tHwdate the t_hwdate value
*/
public void setTHwdate (java.util.Date tHwdate) {
this.tHwdate = tHwdate;
}
/**
* Return the value associated with the column: t_hwsdate
*/
public java.util.Date getTHwsdate () {
return tHwsdate;
}
/**
* Set the value related to the column: t_hwsdate
* @param tHwsdate the t_hwsdate value
*/
public void setTHwsdate (java.util.Date tHwsdate) {
this.tHwsdate = tHwsdate;
}
/**
* Return the value associated with the column: t_hwtitle
*/
public java.lang.String getTHwtitle () {
return tHwtitle;
}
/**
* Set the value related to the column: t_hwtitle
* @param tHwtitle the t_hwtitle value
*/
public void setTHwtitle (java.lang.String tHwtitle) {
this.tHwtitle = tHwtitle;
}
/**
* Return the value associated with the column: s_sid
*/
public cn.hope.front.pojo.CSubject getCSubject () {
return cSubject;
}
/**
* Set the value related to the column: s_sid
* @param cSubject the s_sid value
*/
public void setCSubject (cn.hope.front.pojo.CSubject cSubject) {
this.cSubject = cSubject;
}
/**
* Return the value associated with the column: t_id
*/
public cn.hope.front.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.front.pojo.TInfo tInfo) {
this.tInfo = tInfo;
}
/**
* Return the value associated with the column: SRehws
*/
public java.util.Set getSRehws () {
return sRehws;
}
/**
* Set the value related to the column: SRehws
* @param sRehws the SRehws value
*/
public void setSRehws (java.util.Set sRehws) {
this.sRehws = sRehws;
}
public void addToSRehws (cn.hope.front.pojo.SRehw sRehw) {
if (null == getSRehws()) setSRehws(new java.util.HashSet());
getSRehws().add(sRehw);
}
/**
* Return the value associated with the column: TClassHws
*/
public java.util.Set getTClassHws () {
return tClassHws;
}
/**
* Set the value related to the column: TClassHws
* @param tClassHws the TClassHws value
*/
public void setTClassHws (java.util.Set tClassHws) {
this.tClassHws = tClassHws;
}
public void addToTClassHws (cn.hope.front.pojo.TClassHw tClassHw) {
if (null == getTClassHws()) setTClassHws(new java.util.HashSet());
getTClassHws().add(tClassHw);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.THomework)) return false;
else {
cn.hope.front.pojo.THomework tHomework = (cn.hope.front.pojo.THomework) obj;
if (null == this.getTHwid() || null == tHomework.getTHwid()) return false;
else return (this.getTHwid().equals(tHomework.getTHwid()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTHwid()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTHwid().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -