📄 basemhtype.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_htype table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="m_htype"
*/
public abstract class BaseMHtype implements Serializable {
public static String REF = "MHtype";
public static String PROP_FLAG = "flag";
public static String PROP_HT_NAME = "htName";
// constructors
public BaseMHtype () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMHtype (java.lang.Integer htId) {
this.setHtId(htId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMHtype (
java.lang.Integer htId,
java.lang.String flag,
java.lang.String htName) {
this.setHtId(htId);
this.setFlag(flag);
this.setHtName(htName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer htId;
// fields
private java.lang.String flag;
private java.lang.String htName;
// collections
private java.util.Set mHelps;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="ht_id"
*/
public java.lang.Integer getHtId () {
return htId;
}
/**
* Set the unique identifier of this class
* @param htId the new ID
*/
public void setHtId (java.lang.Integer htId) {
this.htId = htId;
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: ht_name
*/
public java.lang.String getHtName () {
return htName;
}
/**
* Set the value related to the column: ht_name
* @param htName the ht_name value
*/
public void setHtName (java.lang.String htName) {
this.htName = htName;
}
/**
* Return the value associated with the column: MHelps
*/
public java.util.Set getMHelps () {
return mHelps;
}
/**
* Set the value related to the column: MHelps
* @param mHelps the MHelps value
*/
public void setMHelps (java.util.Set mHelps) {
this.mHelps = mHelps;
}
public void addToMHelps (cn.hope.mana.pojo.MHelp mHelp) {
if (null == getMHelps()) setMHelps(new java.util.HashSet());
getMHelps().add(mHelp);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.MHtype)) return false;
else {
cn.hope.mana.pojo.MHtype mHtype = (cn.hope.mana.pojo.MHtype) obj;
if (null == this.getHtId() || null == mHtype.getHtId()) return false;
else return (this.getHtId().equals(mHtype.getHtId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getHtId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getHtId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -