📄 basemgroup.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_group 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_group"
*/
public abstract class BaseMGroup implements Serializable {
public static String REF = "MGroup";
public static String PROP_FLAG = "flag";
public static String PROP_G_NAME = "GName";
// constructors
public BaseMGroup () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMGroup (java.lang.Integer gId) {
this.setGId(gId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMGroup (
java.lang.Integer gId,
java.lang.String flag,
java.lang.String gName) {
this.setGId(gId);
this.setFlag(flag);
this.setGName(gName);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer gId;
// fields
private java.lang.String flag;
private java.lang.String gName;
// collections
private java.util.Set mGpowers;
private java.util.Set tInfos;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="g_id"
*/
public java.lang.Integer getGId () {
return gId;
}
/**
* Set the unique identifier of this class
* @param gId the new ID
*/
public void setGId (java.lang.Integer gId) {
this.gId = gId;
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: g_name
*/
public java.lang.String getGName () {
return gName;
}
/**
* Set the value related to the column: g_name
* @param gName the g_name value
*/
public void setGName (java.lang.String gName) {
this.gName = gName;
}
/**
* Return the value associated with the column: MGpowers
*/
public java.util.Set getMGpowers () {
return mGpowers;
}
/**
* Set the value related to the column: MGpowers
* @param mGpowers the MGpowers value
*/
public void setMGpowers (java.util.Set mGpowers) {
this.mGpowers = mGpowers;
}
public void addToMGpowers (cn.hope.front.pojo.MGpower mGpower) {
if (null == getMGpowers()) setMGpowers(new java.util.HashSet());
getMGpowers().add(mGpower);
}
/**
* Return the value associated with the column: TInfos
*/
public java.util.Set getTInfos () {
return tInfos;
}
/**
* Set the value related to the column: TInfos
* @param tInfos the TInfos value
*/
public void setTInfos (java.util.Set tInfos) {
this.tInfos = tInfos;
}
public void addToTInfos (cn.hope.front.pojo.TInfo tInfo) {
if (null == getTInfos()) setTInfos(new java.util.HashSet());
getTInfos().add(tInfo);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.MGroup)) return false;
else {
cn.hope.front.pojo.MGroup mGroup = (cn.hope.front.pojo.MGroup) obj;
if (null == this.getGId() || null == mGroup.getGId()) return false;
else return (this.getGId().equals(mGroup.getGId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getGId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getGId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -