📄 basetaresult.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_aresult 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_aresult"
*/
public abstract class BaseTAresult implements Serializable {
public static String REF = "TAresult";
public static String PROP_FLAG = "flag";
public static String PROP_TG_CONDITION = "tgCondition";
public static String PROP_TG_ZF = "tgZf";
// constructors
public BaseTAresult () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTAresult (java.lang.Integer tgId) {
this.setTgId(tgId);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tgId;
// fields
private java.lang.String flag;
private java.lang.String tgCondition;
private java.lang.Integer tgZf;
// many to one
private cn.hope.mana.pojo.TInfo tInfo;
private cn.hope.mana.pojo.TAssess tAssess;
private cn.hope.mana.pojo.Student student;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tg_id"
*/
public java.lang.Integer getTgId () {
return tgId;
}
/**
* Set the unique identifier of this class
* @param tgId the new ID
*/
public void setTgId (java.lang.Integer tgId) {
this.tgId = tgId;
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: tg_condition
*/
public java.lang.String getTgCondition () {
return tgCondition;
}
/**
* Set the value related to the column: tg_condition
* @param tgCondition the tg_condition value
*/
public void setTgCondition (java.lang.String tgCondition) {
this.tgCondition = tgCondition;
}
/**
* Return the value associated with the column: tg_zf
*/
public java.lang.Integer getTgZf () {
return tgZf;
}
/**
* Set the value related to the column: tg_zf
* @param tgZf the tg_zf value
*/
public void setTgZf (java.lang.Integer tgZf) {
this.tgZf = tgZf;
}
/**
* Return the value associated with the column: t_id
*/
public cn.hope.mana.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.mana.pojo.TInfo tInfo) {
this.tInfo = tInfo;
}
/**
* Return the value associated with the column: ta_id
*/
public cn.hope.mana.pojo.TAssess getTAssess () {
return tAssess;
}
/**
* Set the value related to the column: ta_id
* @param tAssess the ta_id value
*/
public void setTAssess (cn.hope.mana.pojo.TAssess tAssess) {
this.tAssess = tAssess;
}
/**
* Return the value associated with the column: s_username
*/
public cn.hope.mana.pojo.Student getStudent () {
return student;
}
/**
* Set the value related to the column: s_username
* @param student the s_username value
*/
public void setStudent (cn.hope.mana.pojo.Student student) {
this.student = student;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.TAresult)) return false;
else {
cn.hope.mana.pojo.TAresult tAresult = (cn.hope.mana.pojo.TAresult) obj;
if (null == this.getTgId() || null == tAresult.getTgId()) return false;
else return (this.getTgId().equals(tAresult.getTgId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTgId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTgId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -