📄 basemntype.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the m_ntype 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_ntype"
*/
public abstract class BaseMNtype implements Serializable {
public static String REF = "MNtype";
public static String PROP_FLAG = "flag";
public static String PROP_N_TYPE = "NType";
// constructors
public BaseMNtype () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMNtype (java.lang.Integer typeId) {
this.setTypeId(typeId);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMNtype (
java.lang.Integer typeId,
java.lang.String flag,
java.lang.String nType) {
this.setTypeId(typeId);
this.setFlag(flag);
this.setNType(nType);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer typeId;
// fields
private java.lang.String flag;
private java.lang.String nType;
// collections
private java.util.Set mNounces;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="type_id"
*/
public java.lang.Integer getTypeId () {
return typeId;
}
/**
* Set the unique identifier of this class
* @param typeId the new ID
*/
public void setTypeId (java.lang.Integer typeId) {
this.typeId = typeId;
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: n_type
*/
public java.lang.String getNType () {
return nType;
}
/**
* Set the value related to the column: n_type
* @param nType the n_type value
*/
public void setNType (java.lang.String nType) {
this.nType = nType;
}
/**
* Return the value associated with the column: MNounces
*/
public java.util.Set getMNounces () {
return mNounces;
}
/**
* Set the value related to the column: MNounces
* @param mNounces the MNounces value
*/
public void setMNounces (java.util.Set mNounces) {
this.mNounces = mNounces;
}
public void addToMNounces (cn.hope.front.pojo.MNounce mNounce) {
if (null == getMNounces()) setMNounces(new java.util.HashSet());
getMNounces().add(mNounce);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.MNtype)) return false;
else {
cn.hope.front.pojo.MNtype mNtype = (cn.hope.front.pojo.MNtype) obj;
if (null == this.getTypeId() || null == mNtype.getTypeId()) return false;
else return (this.getTypeId().equals(mNtype.getTypeId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getTypeId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getTypeId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -