📄 basemgpower.java
字号:
package cn.hope.mana.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_gpower 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_gpower"
*/
public abstract class BaseMGpower implements Serializable {
public static String REF = "MGpower";
public static String PROP_FLAG = "flag";
// constructors
public BaseMGpower () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMGpower (java.lang.Integer pId) {
this.setPId(pId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMGpower (
java.lang.Integer pId,
java.lang.String flag) {
this.setPId(pId);
this.setFlag(flag);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer pId;
// fields
private java.lang.String flag;
// many to one
private cn.hope.mana.pojo.MSubfun mSubfun;
private cn.hope.mana.pojo.MGroup mGroup;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="p_id"
*/
public java.lang.Integer getPId () {
return pId;
}
/**
* Set the unique identifier of this class
* @param pId the new ID
*/
public void setPId (java.lang.Integer pId) {
this.pId = pId;
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: sub_id
*/
public cn.hope.mana.pojo.MSubfun getMSubfun () {
return mSubfun;
}
/**
* Set the value related to the column: sub_id
* @param mSubfun the sub_id value
*/
public void setMSubfun (cn.hope.mana.pojo.MSubfun mSubfun) {
this.mSubfun = mSubfun;
}
/**
* Return the value associated with the column: g_id
*/
public cn.hope.mana.pojo.MGroup getMGroup () {
return mGroup;
}
/**
* Set the value related to the column: g_id
* @param mGroup the g_id value
*/
public void setMGroup (cn.hope.mana.pojo.MGroup mGroup) {
this.mGroup = mGroup;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.mana.pojo.MGpower)) return false;
else {
cn.hope.mana.pojo.MGpower mGpower = (cn.hope.mana.pojo.MGpower) obj;
if (null == this.getPId() || null == mGpower.getPId()) return false;
else return (this.getPId().equals(mGpower.getPId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getPId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getPId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -