📄 basetfiletype2.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_file_type2 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_file_type2"
*/
public abstract class BaseTFileType2 implements Serializable {
public static String REF = "TFileType2";
public static String PROP_FLAG = "flag";
public static String PROP_TFT2_NAME = "tft2Name";
// constructors
public BaseTFileType2 () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTFileType2 (java.lang.Integer tft2Id) {
this.setTft2Id(tft2Id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTFileType2 (
java.lang.Integer tft2Id,
java.lang.String flag,
java.lang.String tft2Name) {
this.setTft2Id(tft2Id);
this.setFlag(flag);
this.setTft2Name(tft2Name);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tft2Id;
// fields
private java.lang.String flag;
private java.lang.String tft2Name;
// many to one
private cn.hope.front.pojo.TFileType tFileType;
// collections
private java.util.Set tFiles;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tft2_id"
*/
public java.lang.Integer getTft2Id () {
return tft2Id;
}
/**
* Set the unique identifier of this class
* @param tft2Id the new ID
*/
public void setTft2Id (java.lang.Integer tft2Id) {
this.tft2Id = tft2Id;
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: tft2_name
*/
public java.lang.String getTft2Name () {
return tft2Name;
}
/**
* Set the value related to the column: tft2_name
* @param tft2Name the tft2_name value
*/
public void setTft2Name (java.lang.String tft2Name) {
this.tft2Name = tft2Name;
}
/**
* Return the value associated with the column: tft_id
*/
public cn.hope.front.pojo.TFileType getTFileType () {
return tFileType;
}
/**
* Set the value related to the column: tft_id
* @param tFileType the tft_id value
*/
public void setTFileType (cn.hope.front.pojo.TFileType tFileType) {
this.tFileType = tFileType;
}
/**
* 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.TFileType2)) return false;
else {
cn.hope.front.pojo.TFileType2 tFileType2 = (cn.hope.front.pojo.TFileType2) obj;
if (null == this.getTft2Id() || null == tFileType2.getTft2Id()) return false;
else return (this.getTft2Id().equals(tFileType2.getTft2Id()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTft2Id()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTft2Id().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -