📄 basetclasshw.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_class_hw 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_hw"
*/
public abstract class BaseTClassHw implements Serializable {
public static String REF = "TClassHw";
public static String PROP_FLAG = "flag";
// constructors
public BaseTClassHw () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTClassHw (java.lang.Integer tchId) {
this.setTchId(tchId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTClassHw (
java.lang.Integer tchId,
java.lang.String flag) {
this.setTchId(tchId);
this.setFlag(flag);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tchId;
// fields
private java.lang.String flag;
// many to one
private cn.hope.front.pojo.THomework tHomework;
private cn.hope.front.pojo.SClass sClass;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tch_id"
*/
public java.lang.Integer getTchId () {
return tchId;
}
/**
* Set the unique identifier of this class
* @param tchId the new ID
*/
public void setTchId (java.lang.Integer tchId) {
this.tchId = tchId;
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_hwid
*/
public cn.hope.front.pojo.THomework getTHomework () {
return tHomework;
}
/**
* Set the value related to the column: t_hwid
* @param tHomework the t_hwid value
*/
public void setTHomework (cn.hope.front.pojo.THomework tHomework) {
this.tHomework = tHomework;
}
/**
* Return the value associated with the column: s_classid
*/
public cn.hope.front.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.front.pojo.SClass sClass) {
this.sClass = sClass;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TClassHw)) return false;
else {
cn.hope.front.pojo.TClassHw tClassHw = (cn.hope.front.pojo.TClassHw) obj;
if (null == this.getTchId() || null == tClassHw.getTchId()) return false;
else return (this.getTchId().equals(tClassHw.getTchId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTchId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTchId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -