📄 basesprovin.java
字号:
package cn.hope.front.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the s_provin table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="s_provin"
*/
public abstract class BaseSProvin implements Serializable {
public static String REF = "SProvin";
public static String PROP_FLAG = "flag";
public static String PROP_S_PNAME = "SPname";
// constructors
public BaseSProvin () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSProvin (java.lang.Integer sPid) {
this.setSPid(sPid);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSProvin (
java.lang.Integer sPid,
java.lang.String flag,
java.lang.String sPname) {
this.setSPid(sPid);
this.setFlag(flag);
this.setSPname(sPname);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer sPid;
// fields
private java.lang.String flag;
private java.lang.String sPname;
// collections
private java.util.Set sCities;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="s_pid"
*/
public java.lang.Integer getSPid () {
return sPid;
}
/**
* Set the unique identifier of this class
* @param sPid the new ID
*/
public void setSPid (java.lang.Integer sPid) {
this.sPid = sPid;
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: s_pname
*/
public java.lang.String getSPname () {
return sPname;
}
/**
* Set the value related to the column: s_pname
* @param sPname the s_pname value
*/
public void setSPname (java.lang.String sPname) {
this.sPname = sPname;
}
/**
* Return the value associated with the column: SCities
*/
public java.util.Set getSCities () {
return sCities;
}
/**
* Set the value related to the column: SCities
* @param sCities the SCities value
*/
public void setSCities (java.util.Set sCities) {
this.sCities = sCities;
}
public void addToSCities (cn.hope.front.pojo.SCity sCity) {
if (null == getSCities()) setSCities(new java.util.HashSet());
getSCities().add(sCity);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof cn.hope.front.pojo.SProvin)) return false;
else {
cn.hope.front.pojo.SProvin sProvin = (cn.hope.front.pojo.SProvin) obj;
if (null == this.getSPid() || null == sProvin.getSPid()) return false;
else return (this.getSPid().equals(sProvin.getSPid()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getSPid()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getSPid().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -