📄 basetqtype.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_qtype 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_qtype"
*/
public abstract class BaseTQtype implements Serializable {
public static String REF = "TQtype";
public static String PROP_FLAG = "flag";
public static String PROP_TQT_NAME = "tqtName";
// constructors
public BaseTQtype () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTQtype (java.lang.Integer tqtId) {
this.setTqtId(tqtId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTQtype (
java.lang.Integer tqtId,
java.lang.String flag,
java.lang.String tqtName) {
this.setTqtId(tqtId);
this.setFlag(flag);
this.setTqtName(tqtName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tqtId;
// fields
private java.lang.String flag;
private java.lang.String tqtName;
// collections
private java.util.Set tQuestions;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tqt_id"
*/
public java.lang.Integer getTqtId () {
return tqtId;
}
/**
* Set the unique identifier of this class
* @param tqtId the new ID
*/
public void setTqtId (java.lang.Integer tqtId) {
this.tqtId = tqtId;
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: tqt_name
*/
public java.lang.String getTqtName () {
return tqtName;
}
/**
* Set the value related to the column: tqt_name
* @param tqtName the tqt_name value
*/
public void setTqtName (java.lang.String tqtName) {
this.tqtName = tqtName;
}
/**
* Return the value associated with the column: TQuestions
*/
public java.util.Set getTQuestions () {
return tQuestions;
}
/**
* Set the value related to the column: TQuestions
* @param tQuestions the TQuestions value
*/
public void setTQuestions (java.util.Set tQuestions) {
this.tQuestions = tQuestions;
}
public void addToTQuestions (cn.hope.front.pojo.TQuestion tQuestion) {
if (null == getTQuestions()) setTQuestions(new java.util.HashSet());
getTQuestions().add(tQuestion);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TQtype)) return false;
else {
cn.hope.front.pojo.TQtype tQtype = (cn.hope.front.pojo.TQtype) obj;
if (null == this.getTqtId() || null == tQtype.getTqtId()) return false;
else return (this.getTqtId().equals(tQtype.getTqtId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTqtId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTqtId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -