📄 basemhelp.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_help 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_help"
*/
public abstract class BaseMHelp implements Serializable {
public static String REF = "MHelp";
public static String PROP_FLAG = "flag";
public static String PROP_H_CONTENT = "HContent";
public static String PROP_H_TITLE = "HTitle";
// constructors
public BaseMHelp () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMHelp (java.lang.Integer hId) {
this.setHId(hId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMHelp (
java.lang.Integer hId,
java.lang.String flag,
java.lang.String hContent,
java.lang.String hTitle) {
this.setHId(hId);
this.setFlag(flag);
this.setHContent(hContent);
this.setHTitle(hTitle);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer hId;
// fields
private java.lang.String flag;
private java.lang.String hContent;
private java.lang.String hTitle;
// many to one
private cn.hope.mana.pojo.MHtype mHtype;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="h_id"
*/
public java.lang.Integer getHId () {
return hId;
}
/**
* Set the unique identifier of this class
* @param hId the new ID
*/
public void setHId (java.lang.Integer hId) {
this.hId = hId;
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: h_content
*/
public java.lang.String getHContent () {
return hContent;
}
/**
* Set the value related to the column: h_content
* @param hContent the h_content value
*/
public void setHContent (java.lang.String hContent) {
this.hContent = hContent;
}
/**
* Return the value associated with the column: h_title
*/
public java.lang.String getHTitle () {
return hTitle;
}
/**
* Set the value related to the column: h_title
* @param hTitle the h_title value
*/
public void setHTitle (java.lang.String hTitle) {
this.hTitle = hTitle;
}
/**
* Return the value associated with the column: ht_id
*/
public cn.hope.mana.pojo.MHtype getMHtype () {
return mHtype;
}
/**
* Set the value related to the column: ht_id
* @param mHtype the ht_id value
*/
public void setMHtype (cn.hope.mana.pojo.MHtype mHtype) {
this.mHtype = mHtype;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.MHelp)) return false;
else {
cn.hope.mana.pojo.MHelp mHelp = (cn.hope.mana.pojo.MHelp) obj;
if (null == this.getHId() || null == mHelp.getHId()) return false;
else return (this.getHId().equals(mHelp.getHId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getHId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getHId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -