📄 spbean.java
字号:
package org.helpsoft.entity.sp;
import java.io.Serializable;
import com.helpsoft.util.log.*;
import org.helpsoft.entity.splb.*;
/**
* The Sp entity bean.
*
* @author cao guangxin - www.relationinfo.com
*
* @hibernate.class
* table="sp"
*/
public class SpBean implements Serializable, SpIf {
/**
* The logger object.
*/
private static Logger log = LogService.getLogger(SpBean.class);
private SplbBean splbbmSplb;
private java.lang.String spbm;
private java.lang.String spmc;
private java.lang.String ysdj;
private java.lang.String jhdj;
private java.lang.String spsl;
private java.lang.String dzbl;
private java.lang.String sfcxsp;
/**
* Default constructor.
*/
public SpBean() {
}
/**
* Value object constructor.
*/
public SpBean(org.helpsoft.entity.sp.SpIf value) {
setSpbm(value.getSpbm());
setSplbbm(value.getSplbbm());
setSpmc(value.getSpmc());
setYsdj(value.getYsdj());
setJhdj(value.getJhdj());
setSpsl(value.getSpsl());
setDzbl(value.getDzbl());
setSfcxsp(value.getSfcxsp());
}
/**
* Creates a new bean and returns the primary key.
* If the primary key of the value object has been set, this key will be used.
* If the primary key is set to null, Hibernate's increment id generator is used for integers and longs
* and the uuid.hex generator for strings.
*
* @param value a <code>SpIf</code>
* @return the primary key for this Sp
*/
public java.lang.String create(org.helpsoft.entity.sp.SpIf value) {
setSpbm(value.getSpbm());
setSpmc(value.getSpmc());
setYsdj(value.getYsdj());
setJhdj(value.getJhdj());
setSpsl(value.getSpsl());
setDzbl(value.getDzbl());
setSfcxsp(value.getSfcxsp());
setSplbbm(value.getSplbbm());
return value.getPrimaryKey();
}
/**
* Return the primary key.
*
* @return java.lang.String with the primary key.
*/
public java.lang.String getPrimaryKey() {
return getSpbm();
}
/**
* Set the primary key.
*
* @param primaryKey the primary key
*/
public void setPrimaryKey(java.lang.String primaryKey) {
setSpbm(primaryKey);
}
/**
* Returns the value of the <code>spbm</code> property.
*
* @hibernate.id
* generator-class="uuid.hex"
* length="33"
* column="spbm"
*/
public java.lang.String getSpbm() {
return spbm;
}
/**
* Sets the value of the <code>spbm</code> property.
*
* @param spbm the value for the <code>spbm</code> property
*/
public void setSpbm(java.lang.String spbm) {
this.spbm = spbm;
}
/**
* Returns the value of the <code>spmc</code> property.
*
* @hibernate.property
* length="100"
* column="spmc"
*/
public java.lang.String getSpmc() {
return spmc;
}
/**
* Sets the value of the <code>spmc</code> property.
*
* @param spmc the value for the <code>spmc</code> property
*/
public void setSpmc(java.lang.String spmc) {
this.spmc = spmc;
}
/**
* Returns the value of the <code>ysdj</code> property.
*
* @hibernate.property
* length="20"
* column="ysdj"
*/
public java.lang.String getYsdj() {
return ysdj;
}
/**
* Sets the value of the <code>ysdj</code> property.
*
* @param ysdj the value for the <code>ysdj</code> property
*/
public void setYsdj(java.lang.String ysdj) {
this.ysdj = ysdj;
}
/**
* Returns the value of the <code>jhdj</code> property.
*
* @hibernate.property
* length="20"
* column="jhdj"
*/
public java.lang.String getJhdj() {
return jhdj;
}
/**
* Sets the value of the <code>jhdj</code> property.
*
* @param jhdj the value for the <code>jhdj</code> property
*/
public void setJhdj(java.lang.String jhdj) {
this.jhdj = jhdj;
}
/**
* Returns the value of the <code>spsl</code> property.
*
* @hibernate.property
* length="20"
* column="spsl"
*/
public java.lang.String getSpsl() {
return spsl;
}
/**
* Sets the value of the <code>spsl</code> property.
*
* @param spsl the value for the <code>spsl</code> property
*/
public void setSpsl(java.lang.String spsl) {
this.spsl = spsl;
}
/**
* Returns the value of the <code>dzbl</code> property.
*
* @hibernate.property
* length="20"
* column="dzbl"
*/
public java.lang.String getDzbl() {
return dzbl;
}
/**
* Sets the value of the <code>dzbl</code> property.
*
* @param dzbl the value for the <code>dzbl</code> property
*/
public void setDzbl(java.lang.String dzbl) {
this.dzbl = dzbl;
}
/**
* Returns the value of the <code>sfcxsp</code> property.
*
* @hibernate.property
* length="5"
* column="sfcxsp"
*/
public java.lang.String getSfcxsp() {
return sfcxsp;
}
/**
* Sets the value of the <code>sfcxsp</code> property.
*
* @param sfcxsp the value for the <code>sfcxsp</code> property
*/
public void setSfcxsp(java.lang.String sfcxsp) {
this.sfcxsp = sfcxsp;
}
/**
* Returns the value of the <code>splbbmSplb</code> relation property.
*
* @return the value of the <code>splbbmSplb</code> relation property.
*
* @hibernate.many-to-one
* column="splbbm"
* cascade="none"
*/
public SplbBean getRelationSplbbmSplb(){
return splbbmSplb;
}
/**
* Returns the value of the <code>splbbmSplb</code> relation property.
*
* @return the value of the <code>splbbmSplb</code> relation property.
*
*/
public SplbIf getSplbbmSplb(){
return getRelationSplbbmSplb();
}
/**
* Sets the value of the <code>splbbmSplb</code> relation property.
*
* @param splb a value for <code>splbbmSplb</code>.
*/
public void setRelationSplbbmSplb(SplbBean splb) {
this.splbbmSplb = splb;
}
/**
* Sets the value of the <code>splbbmSplb</code> relation property.
*
* @param splb a value for <code>splbbmSplb</code>.
*/
public void setSplbbmSplb(SplbIf splb) {
setRelationSplbbmSplb(new SplbBean(splb));
}
/**
* Returns the value of the <code>splbbm</code> property.
*
*/
public java.lang.String getSplbbm() {
if (splbbmSplb != null) {
return splbbmSplb.getSplbbm();
} else {
return null;
}
}
/**
* Sets the value of the <code>splbbm</code> property.
*
* @param splbbm the value for the <code>splbbm</code> property
*/
public void setSplbbm(java.lang.String splbbm) {
if (splbbmSplb == null) {
splbbmSplb = new SplbBean();
}
splbbmSplb.setSplbbm(splbbm);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -