📄 basesclass.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_class 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_class"
*/
public abstract class BaseSClass implements Serializable {
public static String REF = "SClass";
public static String PROP_FLAG = "flag";
public static String PROP_S_CLASSNAME = "SClassname";
public static String PROP_SC_OTIME = "scOtime";
public static String PROP_SC_STIME = "scStime";
public static String PROP_STATS = "stats";
// constructors
public BaseSClass () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSClass (java.lang.Integer sClassid) {
this.setSClassid(sClassid);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSClass (
java.lang.Integer sClassid,
java.lang.String flag,
java.lang.String sClassname,
java.lang.String stats) {
this.setSClassid(sClassid);
this.setFlag(flag);
this.setSClassname(sClassname);
this.setStats(stats);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer sClassid;
// fields
private java.lang.String flag;
private java.lang.String sClassname;
private java.util.Date scOtime;
private java.util.Date scStime;
private java.lang.String stats;
// many to one
private cn.hope.front.pojo.CDept cDept;
// collections
private java.util.Set students;
private java.util.Set tClassHws;
private java.util.Set tClassTests;
private java.util.Set teaches;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="s_classid"
*/
public java.lang.Integer getSClassid () {
return sClassid;
}
/**
* Set the unique identifier of this class
* @param sClassid the new ID
*/
public void setSClassid (java.lang.Integer sClassid) {
this.sClassid = sClassid;
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: s_classname
*/
public java.lang.String getSClassname () {
return sClassname;
}
/**
* Set the value related to the column: s_classname
* @param sClassname the s_classname value
*/
public void setSClassname (java.lang.String sClassname) {
this.sClassname = sClassname;
}
/**
* Return the value associated with the column: sc_otime
*/
public java.util.Date getScOtime () {
return scOtime;
}
/**
* Set the value related to the column: sc_otime
* @param scOtime the sc_otime value
*/
public void setScOtime (java.util.Date scOtime) {
this.scOtime = scOtime;
}
/**
* Return the value associated with the column: sc_stime
*/
public java.util.Date getScStime () {
return scStime;
}
/**
* Set the value related to the column: sc_stime
* @param scStime the sc_stime value
*/
public void setScStime (java.util.Date scStime) {
this.scStime = scStime;
}
/**
* Return the value associated with the column: stats
*/
public java.lang.String getStats () {
return stats;
}
/**
* Set the value related to the column: stats
* @param stats the stats value
*/
public void setStats (java.lang.String stats) {
this.stats = stats;
}
/**
* Return the value associated with the column: d_id
*/
public cn.hope.front.pojo.CDept getCDept () {
return cDept;
}
/**
* Set the value related to the column: d_id
* @param cDept the d_id value
*/
public void setCDept (cn.hope.front.pojo.CDept cDept) {
this.cDept = cDept;
}
/**
* Return the value associated with the column: students
*/
public java.util.Set getStudents () {
return students;
}
/**
* Set the value related to the column: students
* @param students the students value
*/
public void setStudents (java.util.Set students) {
this.students = students;
}
public void addTostudents (cn.hope.front.pojo.Student student) {
if (null == getStudents()) setStudents(new java.util.HashSet());
getStudents().add(student);
}
/**
* Return the value associated with the column: TClassHws
*/
public java.util.Set getTClassHws () {
return tClassHws;
}
/**
* Set the value related to the column: TClassHws
* @param tClassHws the TClassHws value
*/
public void setTClassHws (java.util.Set tClassHws) {
this.tClassHws = tClassHws;
}
public void addToTClassHws (cn.hope.front.pojo.TClassHw tClassHw) {
if (null == getTClassHws()) setTClassHws(new java.util.HashSet());
getTClassHws().add(tClassHw);
}
/**
* Return the value associated with the column: TClassTests
*/
public java.util.Set getTClassTests () {
return tClassTests;
}
/**
* Set the value related to the column: TClassTests
* @param tClassTests the TClassTests value
*/
public void setTClassTests (java.util.Set tClassTests) {
this.tClassTests = tClassTests;
}
public void addToTClassTests (cn.hope.front.pojo.TClassTest tClassTest) {
if (null == getTClassTests()) setTClassTests(new java.util.HashSet());
getTClassTests().add(tClassTest);
}
/**
* Return the value associated with the column: teaches
*/
public java.util.Set getTeaches () {
return teaches;
}
/**
* Set the value related to the column: teaches
* @param teaches the teaches value
*/
public void setTeaches (java.util.Set teaches) {
this.teaches = teaches;
}
public void addToteaches (cn.hope.front.pojo.Teach teach) {
if (null == getTeaches()) setTeaches(new java.util.HashSet());
getTeaches().add(teach);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.SClass)) return false;
else {
cn.hope.front.pojo.SClass sClass = (cn.hope.front.pojo.SClass) obj;
if (null == this.getSClassid() || null == sClass.getSClassid()) return false;
else return (this.getSClassid().equals(sClass.getSClassid()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getSClassid()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getSClassid().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -