📄 basetquestion.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_question 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_question"
*/
public abstract class BaseTQuestion implements Serializable {
public static String REF = "TQuestion";
public static String PROP_FLAG = "flag";
public static String PROP_TQ_ANSWER = "tqAnswer";
public static String PROP_TQ_NAME = "tqName";
public static String PROP_TQ_NUMBER = "tqNumber";
// constructors
public BaseTQuestion () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTQuestion (java.lang.Integer tqId) {
this.setTqId(tqId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTQuestion (
java.lang.Integer tqId,
java.lang.String flag,
java.lang.String tqName,
java.lang.Integer tqNumber) {
this.setTqId(tqId);
this.setFlag(flag);
this.setTqName(tqName);
this.setTqNumber(tqNumber);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tqId;
// fields
private java.lang.String flag;
private java.lang.String tqAnswer;
private java.lang.String tqName;
private java.lang.Integer tqNumber;
// many to one
private cn.hope.front.pojo.TInfo tInfo;
private cn.hope.front.pojo.TQtype tQtype;
private cn.hope.front.pojo.CSubject cSubject;
// collections
private java.util.Set tTests;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tq_id"
*/
public java.lang.Integer getTqId () {
return tqId;
}
/**
* Set the unique identifier of this class
* @param tqId the new ID
*/
public void setTqId (java.lang.Integer tqId) {
this.tqId = tqId;
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: tq_answer
*/
public java.lang.String getTqAnswer () {
return tqAnswer;
}
/**
* Set the value related to the column: tq_answer
* @param tqAnswer the tq_answer value
*/
public void setTqAnswer (java.lang.String tqAnswer) {
this.tqAnswer = tqAnswer;
}
/**
* Return the value associated with the column: tq_name
*/
public java.lang.String getTqName () {
return tqName;
}
/**
* Set the value related to the column: tq_name
* @param tqName the tq_name value
*/
public void setTqName (java.lang.String tqName) {
this.tqName = tqName;
}
/**
* Return the value associated with the column: tq_number
*/
public java.lang.Integer getTqNumber () {
return tqNumber;
}
/**
* Set the value related to the column: tq_number
* @param tqNumber the tq_number value
*/
public void setTqNumber (java.lang.Integer tqNumber) {
this.tqNumber = tqNumber;
}
/**
* 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: tqt_id
*/
public cn.hope.front.pojo.TQtype getTQtype () {
return tQtype;
}
/**
* Set the value related to the column: tqt_id
* @param tQtype the tqt_id value
*/
public void setTQtype (cn.hope.front.pojo.TQtype tQtype) {
this.tQtype = tQtype;
}
/**
* 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: TTests
*/
public java.util.Set getTTests () {
return tTests;
}
/**
* Set the value related to the column: TTests
* @param tTests the TTests value
*/
public void setTTests (java.util.Set tTests) {
this.tTests = tTests;
}
public void addToTTests (cn.hope.front.pojo.TTest tTest) {
if (null == getTTests()) setTTests(new java.util.HashSet());
getTTests().add(tTest);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TQuestion)) return false;
else {
cn.hope.front.pojo.TQuestion tQuestion = (cn.hope.front.pojo.TQuestion) obj;
if (null == this.getTqId() || null == tQuestion.getTqId()) return false;
else return (this.getTqId().equals(tQuestion.getTqId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTqId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTqId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -