📄 basetfiletype.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the t_file_type 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_type"
*/
public abstract class BaseTFileType implements Serializable {
public static String REF = "TFileType";
public static String PROP_FLAG = "flag";
public static String PROP_TFT_NAME = "tftName";
// constructors
public BaseTFileType () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTFileType (java.lang.Integer tftId) {
this.setTftId(tftId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseTFileType (
java.lang.Integer tftId,
java.lang.String flag,
java.lang.String tftName) {
this.setTftId(tftId);
this.setFlag(flag);
this.setTftName(tftName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer tftId;
// fields
private java.lang.String flag;
private java.lang.String tftName;
// collections
private java.util.Set tFileType2s;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="tft_id"
*/
public java.lang.Integer getTftId () {
return tftId;
}
/**
* Set the unique identifier of this class
* @param tftId the new ID
*/
public void setTftId (java.lang.Integer tftId) {
this.tftId = tftId;
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: tft_name
*/
public java.lang.String getTftName () {
return tftName;
}
/**
* Set the value related to the column: tft_name
* @param tftName the tft_name value
*/
public void setTftName (java.lang.String tftName) {
this.tftName = tftName;
}
/**
* Return the value associated with the column: TFileType2s
*/
public java.util.Set getTFileType2s () {
return tFileType2s;
}
/**
* Set the value related to the column: TFileType2s
* @param tFileType2s the TFileType2s value
*/
public void setTFileType2s (java.util.Set tFileType2s) {
this.tFileType2s = tFileType2s;
}
public void addToTFileType2s (cn.hope.front.pojo.TFileType2 tFileType2) {
if (null == getTFileType2s()) setTFileType2s(new java.util.HashSet());
getTFileType2s().add(tFileType2);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.TFileType)) return false;
else {
cn.hope.front.pojo.TFileType tFileType = (cn.hope.front.pojo.TFileType) obj;
if (null == this.getTftId() || null == tFileType.getTftId()) return false;
else return (this.getTftId().equals(tFileType.getTftId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTftId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTftId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -