📄 basetclasstest.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_class_test 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_class_test"
*/
public abstract class BaseTClassTest implements Serializable {
public static String REF = "TClassTest";
public static String PROP_FLAG = "flag";
// constructors
public BaseTClassTest () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTClassTest (java.lang.Integer tId4) {
this.setTId4(tId4);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTClassTest (
java.lang.Integer tId4,
java.lang.String flag) {
this.setTId4(tId4);
this.setFlag(flag);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tId4;
// fields
private java.lang.String flag;
// many to one
private cn.hope.mana.pojo.TTestInfo tTestInfo;
private cn.hope.mana.pojo.SClass sClass;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="t_id4"
*/
public java.lang.Integer getTId4 () {
return tId4;
}
/**
* Set the unique identifier of this class
* @param tId4 the new ID
*/
public void setTId4 (java.lang.Integer tId4) {
this.tId4 = tId4;
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_testid
*/
public cn.hope.mana.pojo.TTestInfo getTTestInfo () {
return tTestInfo;
}
/**
* Set the value related to the column: t_testid
* @param tTestInfo the t_testid value
*/
public void setTTestInfo (cn.hope.mana.pojo.TTestInfo tTestInfo) {
this.tTestInfo = tTestInfo;
}
/**
* Return the value associated with the column: s_classid
*/
public cn.hope.mana.pojo.SClass getSClass () {
return sClass;
}
/**
* Set the value related to the column: s_classid
* @param sClass the s_classid value
*/
public void setSClass (cn.hope.mana.pojo.SClass sClass) {
this.sClass = sClass;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.TClassTest)) return false;
else {
cn.hope.mana.pojo.TClassTest tClassTest = (cn.hope.mana.pojo.TClassTest) obj;
if (null == this.getTId4() || null == tClassTest.getTId4()) return false;
else return (this.getTId4().equals(tClassTest.getTId4()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTId4()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTId4().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -