📄 basesgrade.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_grade 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_grade"
*/
public abstract class BaseSGrade implements Serializable {
public static String REF = "SGrade";
public static String PROP_FLAG = "flag";
public static String PROP_T_TESTGRADE = "TTestgrade";
// constructors
public BaseSGrade () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSGrade (java.lang.Integer sgId) {
this.setSgId(sgId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSGrade (
java.lang.Integer sgId,
java.lang.String flag,
java.lang.Integer tTestgrade) {
this.setSgId(sgId);
this.setFlag(flag);
this.setTTestgrade(tTestgrade);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer sgId;
// fields
private java.lang.String flag;
private java.lang.Integer tTestgrade;
// many to one
private cn.hope.mana.pojo.Student student;
private cn.hope.mana.pojo.TTestInfo tTestInfo;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="sg_id"
*/
public java.lang.Integer getSgId () {
return sgId;
}
/**
* Set the unique identifier of this class
* @param sgId the new ID
*/
public void setSgId (java.lang.Integer sgId) {
this.sgId = sgId;
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_testgrade
*/
public java.lang.Integer getTTestgrade () {
return tTestgrade;
}
/**
* Set the value related to the column: t_testgrade
* @param tTestgrade the t_testgrade value
*/
public void setTTestgrade (java.lang.Integer tTestgrade) {
this.tTestgrade = tTestgrade;
}
/**
* 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_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;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.SGrade)) return false;
else {
cn.hope.mana.pojo.SGrade sGrade = (cn.hope.mana.pojo.SGrade) obj;
if (null == this.getSgId() || null == sGrade.getSgId()) return false;
else return (this.getSgId().equals(sGrade.getSgId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getSgId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getSgId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -