📄 basemmainfun.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_mainfun 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_mainfun"
*/
public abstract class BaseMMainfun implements Serializable {
public static String REF = "MMainfun";
public static String PROP_FLAG = "flag";
public static String PROP_MM_NAME = "mmName";
// constructors
public BaseMMainfun () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMMainfun (java.lang.Integer mainId) {
this.setMainId(mainId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMMainfun (
java.lang.Integer mainId,
java.lang.String flag,
java.lang.String mmName) {
this.setMainId(mainId);
this.setFlag(flag);
this.setMmName(mmName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer mainId;
// fields
private java.lang.String flag;
private java.lang.String mmName;
// collections
private java.util.Set mSubfuns;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="main_id"
*/
public java.lang.Integer getMainId () {
return mainId;
}
/**
* Set the unique identifier of this class
* @param mainId the new ID
*/
public void setMainId (java.lang.Integer mainId) {
this.mainId = mainId;
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: mm_name
*/
public java.lang.String getMmName () {
return mmName;
}
/**
* Set the value related to the column: mm_name
* @param mmName the mm_name value
*/
public void setMmName (java.lang.String mmName) {
this.mmName = mmName;
}
/**
* Return the value associated with the column: MSubfuns
*/
public java.util.Set getMSubfuns () {
return mSubfuns;
}
/**
* Set the value related to the column: MSubfuns
* @param mSubfuns the MSubfuns value
*/
public void setMSubfuns (java.util.Set mSubfuns) {
this.mSubfuns = mSubfuns;
}
public void addToMSubfuns (cn.hope.front.pojo.MSubfun mSubfun) {
if (null == getMSubfuns()) setMSubfuns(new java.util.HashSet());
getMSubfuns().add(mSubfun);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.MMainfun)) return false;
else {
cn.hope.front.pojo.MMainfun mMainfun = (cn.hope.front.pojo.MMainfun) obj;
if (null == this.getMainId() || null == mMainfun.getMainId()) return false;
else return (this.getMainId().equals(mMainfun.getMainId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getMainId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getMainId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -