📄 basetassess.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_assess 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_assess"
*/
public abstract class BaseTAssess implements Serializable {
public static String REF = "TAssess";
public static String PROP_FLAG = "flag";
public static String PROP_TA_CONDITION = "taCondition";
public static String PROP_TA_DATE = "taDate";
public static String PROP_TA_NAME = "taName";
public static String PROP_TA_OTIME = "taOtime";
public static String PROP_TA_STIME = "taStime";
// constructors
public BaseTAssess () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTAssess (java.lang.Integer taId) {
this.setTaId(taId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTAssess (
java.lang.Integer taId,
java.lang.String taCondition,
java.util.Date taDate,
java.lang.String taName,
java.util.Date taOtime,
java.util.Date taStime) {
this.setTaId(taId);
this.setTaCondition(taCondition);
this.setTaDate(taDate);
this.setTaName(taName);
this.setTaOtime(taOtime);
this.setTaStime(taStime);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer taId;
// fields
private java.lang.String flag;
private java.lang.String taCondition;
private java.util.Date taDate;
private java.lang.String taName;
private java.util.Date taOtime;
private java.util.Date taStime;
// many to one
private cn.hope.front.pojo.TInfo tInfo;
// collections
private java.util.Set tAresults;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="ta_id"
*/
public java.lang.Integer getTaId () {
return taId;
}
/**
* Set the unique identifier of this class
* @param taId the new ID
*/
public void setTaId (java.lang.Integer taId) {
this.taId = taId;
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: ta_condition
*/
public java.lang.String getTaCondition () {
return taCondition;
}
/**
* Set the value related to the column: ta_condition
* @param taCondition the ta_condition value
*/
public void setTaCondition (java.lang.String taCondition) {
this.taCondition = taCondition;
}
/**
* Return the value associated with the column: ta_date
*/
public java.util.Date getTaDate () {
return taDate;
}
/**
* Set the value related to the column: ta_date
* @param taDate the ta_date value
*/
public void setTaDate (java.util.Date taDate) {
this.taDate = taDate;
}
/**
* Return the value associated with the column: ta_name
*/
public java.lang.String getTaName () {
return taName;
}
/**
* Set the value related to the column: ta_name
* @param taName the ta_name value
*/
public void setTaName (java.lang.String taName) {
this.taName = taName;
}
/**
* Return the value associated with the column: ta_otime
*/
public java.util.Date getTaOtime () {
return taOtime;
}
/**
* Set the value related to the column: ta_otime
* @param taOtime the ta_otime value
*/
public void setTaOtime (java.util.Date taOtime) {
this.taOtime = taOtime;
}
/**
* Return the value associated with the column: ta_stime
*/
public java.util.Date getTaStime () {
return taStime;
}
/**
* Set the value related to the column: ta_stime
* @param taStime the ta_stime value
*/
public void setTaStime (java.util.Date taStime) {
this.taStime = taStime;
}
/**
* 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: TAresults
*/
public java.util.Set getTAresults () {
return tAresults;
}
/**
* Set the value related to the column: TAresults
* @param tAresults the TAresults value
*/
public void setTAresults (java.util.Set tAresults) {
this.tAresults = tAresults;
}
public void addToTAresults (cn.hope.front.pojo.TAresult tAresult) {
if (null == getTAresults()) setTAresults(new java.util.HashSet());
getTAresults().add(tAresult);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TAssess)) return false;
else {
cn.hope.front.pojo.TAssess tAssess = (cn.hope.front.pojo.TAssess) obj;
if (null == this.getTaId() || null == tAssess.getTaId()) return false;
else return (this.getTaId().equals(tAssess.getTaId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTaId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTaId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -