📄 basesresult.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_result table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="s_result"
*/
public abstract class BaseSResult implements Serializable {
public static String REF = "SResult";
public static String PROP_FLAG = "flag";
public static String PROP_T_APOINT = "TApoint";
public static String PROP_T_SANSWER = "TSanswer";
public static String PROP_T_STATUS = "TStatus";
// constructors
public BaseSResult () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSResult (java.lang.Integer srId) {
this.setSrId(srId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSResult (
java.lang.Integer srId,
java.lang.String flag,
java.lang.Integer tApoint,
java.lang.String tSanswer,
java.lang.Integer tStatus) {
this.setSrId(srId);
this.setFlag(flag);
this.setTApoint(tApoint);
this.setTSanswer(tSanswer);
this.setTStatus(tStatus);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer srId;
// fields
private java.lang.String flag;
private java.lang.Integer tApoint;
private java.lang.String tSanswer;
private java.lang.Integer tStatus;
// many to one
private cn.hope.mana.pojo.Student student;
private cn.hope.mana.pojo.TTest tTest;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="sr_id"
*/
public java.lang.Integer getSrId () {
return srId;
}
/**
* Set the unique identifier of this class
* @param srId the new ID
*/
public void setSrId (java.lang.Integer srId) {
this.srId = srId;
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_apoint
*/
public java.lang.Integer getTApoint () {
return tApoint;
}
/**
* Set the value related to the column: t_apoint
* @param tApoint the t_apoint value
*/
public void setTApoint (java.lang.Integer tApoint) {
this.tApoint = tApoint;
}
/**
* Return the value associated with the column: t_sanswer
*/
public java.lang.String getTSanswer () {
return tSanswer;
}
/**
* Set the value related to the column: t_sanswer
* @param tSanswer the t_sanswer value
*/
public void setTSanswer (java.lang.String tSanswer) {
this.tSanswer = tSanswer;
}
/**
* Return the value associated with the column: t_status
*/
public java.lang.Integer getTStatus () {
return tStatus;
}
/**
* Set the value related to the column: t_status
* @param tStatus the t_status value
*/
public void setTStatus (java.lang.Integer tStatus) {
this.tStatus = tStatus;
}
/**
* 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;
}
/**
* Return the value associated with the column: t_id1
*/
public cn.hope.mana.pojo.TTest getTTest () {
return tTest;
}
/**
* Set the value related to the column: t_id1
* @param tTest the t_id1 value
*/
public void setTTest (cn.hope.mana.pojo.TTest tTest) {
this.tTest = tTest;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.SResult)) return false;
else {
cn.hope.mana.pojo.SResult sResult = (cn.hope.mana.pojo.SResult) obj;
if (null == this.getSrId() || null == sResult.getSrId()) return false;
else return (this.getSrId().equals(sResult.getSrId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getSrId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getSrId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -