📄 basetinfo.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_info 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_info"
*/
public abstract class BaseTInfo implements Serializable {
public static String REF = "TInfo";
public static String PROP_D_ID = "DId";
public static String PROP_FLAG = "flag";
public static String PROP_G_ID = "GId";
public static String PROP_T_BIRTH = "TBirth";
public static String PROP_T_EMAIL = "TEmail";
public static String PROP_T_ENJOY = "TEnjoy";
public static String PROP_T_GUAN = "TGuan";
public static String PROP_T_HOMETEL = "THometel";
public static String PROP_T_IDCARD = "TIdcard";
public static String PROP_T_MAO = "TMao";
public static String PROP_T_MARRY = "TMarry";
public static String PROP_T_MOBILE = "TMobile";
public static String PROP_T_NAME = "TName";
public static String PROP_T_OVER = "TOver";
public static String PROP_T_PASSWORD = "TPassword";
public static String PROP_T_PICTURE = "TPicture";
public static String PROP_T_SCHOOL = "TSchool";
public static String PROP_T_SEX = "TSex";
public static String PROP_T_WORK = "TWork";
public static String PROP_T_XUELI = "TXueli";
public static String PROP_T_ZYE = "TZye";
// constructors
public BaseTInfo () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTInfo (java.lang.String tId) {
this.setTId(tId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTInfo (
java.lang.String tId,
java.lang.Integer dId,
java.lang.Integer gId,
java.util.Date tBirth,
java.lang.String tEmail,
java.lang.String tIdcard,
java.lang.String tName,
java.lang.String tPassword,
java.lang.String tSex) {
this.setTId(tId);
this.setDId(dId);
this.setGId(gId);
this.setTBirth(tBirth);
this.setTEmail(tEmail);
this.setTIdcard(tIdcard);
this.setTName(tName);
this.setTPassword(tPassword);
this.setTSex(tSex);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.String tId;
// fields
private java.lang.Integer dId;
private java.lang.String flag;
private java.lang.Integer gId;
private java.util.Date tBirth;
private java.lang.String tEmail;
private java.lang.String tEnjoy;
private java.lang.String tGuan;
private java.lang.String tHometel;
private java.lang.String tIdcard;
private java.lang.String tMao;
private java.lang.String tMarry;
private java.lang.String tMobile;
private java.lang.String tName;
private java.util.Date tOver;
private java.lang.String tPassword;
private java.lang.String tPicture;
private java.lang.String tSchool;
private java.lang.String tSex;
private java.lang.String tWork;
private java.lang.String tXueli;
private java.lang.String tZye;
// collections
private java.util.Set sJournals;
private java.util.Set tJournalMakers;
private java.util.Set tJournalTeachers;
private java.util.Set tServiceAnswers;
private java.util.Set tServiceAsks;
private java.util.Set tFiles;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="t_id"
*/
public java.lang.String getTId () {
return tId;
}
/**
* Set the unique identifier of this class
* @param tId the new ID
*/
public void setTId (java.lang.String tId) {
this.tId = tId;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: d_id
*/
public java.lang.Integer getDId () {
return dId;
}
/**
* Set the value related to the column: d_id
* @param dId the d_id value
*/
public void setDId (java.lang.Integer dId) {
this.dId = dId;
}
/**
* 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: g_id
*/
public java.lang.Integer getGId () {
return gId;
}
/**
* Set the value related to the column: g_id
* @param gId the g_id value
*/
public void setGId (java.lang.Integer gId) {
this.gId = gId;
}
/**
* Return the value associated with the column: t_birth
*/
public java.util.Date getTBirth () {
return tBirth;
}
/**
* Set the value related to the column: t_birth
* @param tBirth the t_birth value
*/
public void setTBirth (java.util.Date tBirth) {
this.tBirth = tBirth;
}
/**
* Return the value associated with the column: t_email
*/
public java.lang.String getTEmail () {
return tEmail;
}
/**
* Set the value related to the column: t_email
* @param tEmail the t_email value
*/
public void setTEmail (java.lang.String tEmail) {
this.tEmail = tEmail;
}
/**
* Return the value associated with the column: t_enjoy
*/
public java.lang.String getTEnjoy () {
return tEnjoy;
}
/**
* Set the value related to the column: t_enjoy
* @param tEnjoy the t_enjoy value
*/
public void setTEnjoy (java.lang.String tEnjoy) {
this.tEnjoy = tEnjoy;
}
/**
* Return the value associated with the column: t_guan
*/
public java.lang.String getTGuan () {
return tGuan;
}
/**
* Set the value related to the column: t_guan
* @param tGuan the t_guan value
*/
public void setTGuan (java.lang.String tGuan) {
this.tGuan = tGuan;
}
/**
* Return the value associated with the column: t_hometel
*/
public java.lang.String getTHometel () {
return tHometel;
}
/**
* Set the value related to the column: t_hometel
* @param tHometel the t_hometel value
*/
public void setTHometel (java.lang.String tHometel) {
this.tHometel = tHometel;
}
/**
* Return the value associated with the column: t_idcard
*/
public java.lang.String getTIdcard () {
return tIdcard;
}
/**
* Set the value related to the column: t_idcard
* @param tIdcard the t_idcard value
*/
public void setTIdcard (java.lang.String tIdcard) {
this.tIdcard = tIdcard;
}
/**
* Return the value associated with the column: t_mao
*/
public java.lang.String getTMao () {
return tMao;
}
/**
* Set the value related to the column: t_mao
* @param tMao the t_mao value
*/
public void setTMao (java.lang.String tMao) {
this.tMao = tMao;
}
/**
* Return the value associated with the column: t_marry
*/
public java.lang.String getTMarry () {
return tMarry;
}
/**
* Set the value related to the column: t_marry
* @param tMarry the t_marry value
*/
public void setTMarry (java.lang.String tMarry) {
this.tMarry = tMarry;
}
/**
* Return the value associated with the column: t_mobile
*/
public java.lang.String getTMobile () {
return tMobile;
}
/**
* Set the value related to the column: t_mobile
* @param tMobile the t_mobile value
*/
public void setTMobile (java.lang.String tMobile) {
this.tMobile = tMobile;
}
/**
* Return the value associated with the column: t_name
*/
public java.lang.String getTName () {
return tName;
}
/**
* Set the value related to the column: t_name
* @param tName the t_name value
*/
public void setTName (java.lang.String tName) {
this.tName = tName;
}
/**
* Return the value associated with the column: t_over
*/
public java.util.Date getTOver () {
return tOver;
}
/**
* Set the value related to the column: t_over
* @param tOver the t_over value
*/
public void setTOver (java.util.Date tOver) {
this.tOver = tOver;
}
/**
* Return the value associated with the column: t_password
*/
public java.lang.String getTPassword () {
return tPassword;
}
/**
* Set the value related to the column: t_password
* @param tPassword the t_password value
*/
public void setTPassword (java.lang.String tPassword) {
this.tPassword = tPassword;
}
/**
* Return the value associated with the column: t_picture
*/
public java.lang.String getTPicture () {
return tPicture;
}
/**
* Set the value related to the column: t_picture
* @param tPicture the t_picture value
*/
public void setTPicture (java.lang.String tPicture) {
this.tPicture = tPicture;
}
/**
* Return the value associated with the column: t_school
*/
public java.lang.String getTSchool () {
return tSchool;
}
/**
* Set the value related to the column: t_school
* @param tSchool the t_school value
*/
public void setTSchool (java.lang.String tSchool) {
this.tSchool = tSchool;
}
/**
* Return the value associated with the column: t_sex
*/
public java.lang.String getTSex () {
return tSex;
}
/**
* Set the value related to the column: t_sex
* @param tSex the t_sex value
*/
public void setTSex (java.lang.String tSex) {
this.tSex = tSex;
}
/**
* Return the value associated with the column: t_work
*/
public java.lang.String getTWork () {
return tWork;
}
/**
* Set the value related to the column: t_work
* @param tWork the t_work value
*/
public void setTWork (java.lang.String tWork) {
this.tWork = tWork;
}
/**
* Return the value associated with the column: t_xueli
*/
public java.lang.String getTXueli () {
return tXueli;
}
/**
* Set the value related to the column: t_xueli
* @param tXueli the t_xueli value
*/
public void setTXueli (java.lang.String tXueli) {
this.tXueli = tXueli;
}
/**
* Return the value associated with the column: t_zye
*/
public java.lang.String getTZye () {
return tZye;
}
/**
* Set the value related to the column: t_zye
* @param tZye the t_zye value
*/
public void setTZye (java.lang.String tZye) {
this.tZye = tZye;
}
/**
* Return the value associated with the column: SJournals
*/
public java.util.Set getSJournals () {
return sJournals;
}
/**
* Set the value related to the column: SJournals
* @param sJournals the SJournals value
*/
public void setSJournals (java.util.Set sJournals) {
this.sJournals = sJournals;
}
public void addToSJournals (cn.hope.front.pojo.SJournal sJournal) {
if (null == getSJournals()) setSJournals(new java.util.HashSet());
getSJournals().add(sJournal);
}
/**
* Return the value associated with the column: TJournalMakers
*/
public java.util.Set getTJournalMakers () {
return tJournalMakers;
}
/**
* Set the value related to the column: TJournalMakers
* @param tJournalMakers the TJournalMakers value
*/
public void setTJournalMakers (java.util.Set tJournalMakers) {
this.tJournalMakers = tJournalMakers;
}
public void addToTJournalMakers (cn.hope.front.pojo.TJournal tJournal) {
if (null == getTJournalMakers()) setTJournalMakers(new java.util.HashSet());
getTJournalMakers().add(tJournal);
}
/**
* Return the value associated with the column: TJournalTeachers
*/
public java.util.Set getTJournalTeachers () {
return tJournalTeachers;
}
/**
* Set the value related to the column: TJournalTeachers
* @param tJournalTeachers the TJournalTeachers value
*/
public void setTJournalTeachers (java.util.Set tJournalTeachers) {
this.tJournalTeachers = tJournalTeachers;
}
public void addToTJournalTeachers (cn.hope.front.pojo.TJournal tJournal) {
if (null == getTJournalTeachers()) setTJournalTeachers(new java.util.HashSet());
getTJournalTeachers().add(tJournal);
}
/**
* Return the value associated with the column: TServiceAnswers
*/
public java.util.Set getTServiceAnswers () {
return tServiceAnswers;
}
/**
* Set the value related to the column: TServiceAnswers
* @param tServiceAnswers the TServiceAnswers value
*/
public void setTServiceAnswers (java.util.Set tServiceAnswers) {
this.tServiceAnswers = tServiceAnswers;
}
public void addToTServiceAnswers (cn.hope.front.pojo.TService tService) {
if (null == getTServiceAnswers()) setTServiceAnswers(new java.util.HashSet());
getTServiceAnswers().add(tService);
}
/**
* Return the value associated with the column: TServiceAsks
*/
public java.util.Set getTServiceAsks () {
return tServiceAsks;
}
/**
* Set the value related to the column: TServiceAsks
* @param tServiceAsks the TServiceAsks value
*/
public void setTServiceAsks (java.util.Set tServiceAsks) {
this.tServiceAsks = tServiceAsks;
}
public void addToTServiceAsks (cn.hope.front.pojo.TService tService) {
if (null == getTServiceAsks()) setTServiceAsks(new java.util.HashSet());
getTServiceAsks().add(tService);
}
/**
* Return the value associated with the column: TFiles
*/
public java.util.Set getTFiles () {
return tFiles;
}
/**
* Set the value related to the column: TFiles
* @param tFiles the TFiles value
*/
public void setTFiles (java.util.Set tFiles) {
this.tFiles = tFiles;
}
public void addToTFiles (cn.hope.front.pojo.TFile tFile) {
if (null == getTFiles()) setTFiles(new java.util.HashSet());
getTFiles().add(tFile);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TInfo)) return false;
else {
cn.hope.front.pojo.TInfo tInfo = (cn.hope.front.pojo.TInfo) obj;
if (null == this.getTId() || null == tInfo.getTId()) return false;
else return (this.getTId().equals(tInfo.getTId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -