📄 txbean.java
字号:
package org.helpsoft.entity.tx;
import java.io.Serializable;
import com.helpsoft.util.log.*;
/**
* The Tx entity bean.
*
* @author cao guangxin - www.relationinfo.com
*
* @hibernate.class
* table="tx"
*/
public class TxBean implements Serializable, TxIf {
/**
* The logger object.
*/
private static Logger log = LogService.getLogger(TxBean.class);
private java.lang.String txbh;
private java.lang.String txmc;
private java.lang.String qtsz;
private java.lang.String sfky;
/**
* Default constructor.
*/
public TxBean() {
}
/**
* Value object constructor.
*/
public TxBean(org.helpsoft.entity.tx.TxIf value) {
setTxbh(value.getTxbh());
setTxmc(value.getTxmc());
setQtsz(value.getQtsz());
setSfky(value.getSfky());
}
/**
* 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>TxIf</code>
* @return the primary key for this Tx
*/
public java.lang.String create(org.helpsoft.entity.tx.TxIf value) {
setTxbh(value.getTxbh());
setTxmc(value.getTxmc());
setQtsz(value.getQtsz());
setSfky(value.getSfky());
return value.getPrimaryKey();
}
/**
* Return the primary key.
*
* @return java.lang.String with the primary key.
*/
public java.lang.String getPrimaryKey() {
return getTxbh();
}
/**
* Set the primary key.
*
* @param primaryKey the primary key
*/
public void setPrimaryKey(java.lang.String primaryKey) {
setTxbh(primaryKey);
}
/**
* Returns the value of the <code>txbh</code> property.
*
* @hibernate.id
* generator-class="uuid.hex"
* length="33"
* column="txbh"
*/
public java.lang.String getTxbh() {
return txbh;
}
/**
* Sets the value of the <code>txbh</code> property.
*
* @param txbh the value for the <code>txbh</code> property
*/
public void setTxbh(java.lang.String txbh) {
this.txbh = txbh;
}
/**
* Returns the value of the <code>txmc</code> property.
*
* @hibernate.property
* length="100"
* column="txmc"
*/
public java.lang.String getTxmc() {
return txmc;
}
/**
* Sets the value of the <code>txmc</code> property.
*
* @param txmc the value for the <code>txmc</code> property
*/
public void setTxmc(java.lang.String txmc) {
this.txmc = txmc;
}
/**
* Returns the value of the <code>qtsz</code> property.
*
* @hibernate.property
* length="100"
* column="qtsz"
*/
public java.lang.String getQtsz() {
return qtsz;
}
/**
* Sets the value of the <code>qtsz</code> property.
*
* @param qtsz the value for the <code>qtsz</code> property
*/
public void setQtsz(java.lang.String qtsz) {
this.qtsz = qtsz;
}
/**
* Returns the value of the <code>sfky</code> property.
*
* @hibernate.property
* length="5"
* column="sfky"
*/
public java.lang.String getSfky() {
return sfky;
}
/**
* Sets the value of the <code>sfky</code> property.
*
* @param sfky the value for the <code>sfky</code> property
*/
public void setSfky(java.lang.String sfky) {
this.sfky = sfky;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -