📄 accountadjustentity.java
字号:
package com.ufmobile.business.account.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.ufmobile.mstreet.entity.BoothEntity;
import com.ufmobile.mstreet.entity.OperatorEntity;
@SuppressWarnings("serial")
@javax.persistence.Entity
@javax.persistence.Table(name = "TB_ACCOUNT_ADJUST_LOG")
@javax.persistence.SequenceGenerator(name = "S_ACCOUNT_ADJUST", sequenceName = "TB_ACCOUNT_ADJUST_LOG_SEQ", allocationSize = 25)
public class AccountAdjustEntity implements Serializable {
public static final int ACCOUNT_SERVICE = 1; //账户类型:服务 1 流量 2
public static final int ACCOUNT_FLOW = 2;
public static final int ADJUST_TYPE_ADD = 1; //调整类型:增加 1 减少 2
public static final int ADJUST_TYPE_SUB = 2;
/**
* Primary key. only Long type primary key is allowed in this modified
* program. --- Helloween.
*/
private Long accountAdjustID;
/**
* Get the primary key.
*
* @return The primary key.
* @javax.persistence.Id(generate = javax.persistence.GeneratorType.AUTO)
*/
@javax.persistence.Id
@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.SEQUENCE, generator = "S_ACCOUNT_ADJUST")
@javax.persistence.Column(name = "ACCOUNTADJUSTID")
public Long getAccountAdjustID() {
return accountAdjustID;
}
/**
* Set the primary key.
*
* @param id The primary key.
*/
public void setAccountAdjustID(Long accountAdjustID) {
this.accountAdjustID = accountAdjustID;
}
/** Regular field. */
private java.lang.Integer streetIdIn;
/**
* Get the streetIDIn.
*
* @return The streetIDIn.
*/
@javax.persistence.Column(name = "STREETIDIN")
public java.lang.Integer getStreetIdIn() {
return streetIdIn;
}
/**
* Set the streetIDIn.
*
* @param streetIDIn The streetIDIn.
*/
public void setStreetIdIn(java.lang.Integer streetIdIn) {
this.streetIdIn = streetIdIn;
}
/** Regular field. */
private java.lang.Integer streetIdOut;
/**
* Get the streetIDOut.
*
* @return The streetIDOut.
*/
@javax.persistence.Column(name = "STREETIDOUT")
public java.lang.Integer getStreetIdOut() {
return streetIdOut;
}
/**
* Set the streetIDOut.
*
* @param streetIDOut The streetIDOut.
*/
public void setStreetIdOut(java.lang.Integer streetIdOut) {
this.streetIdOut = streetIdOut;
}
/** Regular field. */
private java.lang.Integer adjustType;
/**
* Get the adjustType.
*
* @return The adjustType.
*/
@javax.persistence.Column(name = "ADJUSTTYPE")
public java.lang.Integer getAdjustType() {
return adjustType;
}
/**
* Set the adjustType.
*
* @param adjustType The adjustType.
*/
public void setAdjustType(java.lang.Integer adjustType) {
this.adjustType = adjustType;
}
/** Regular field. */
private java.lang.Integer accountType;
/**
* Get the accountType.
*
* @return The accountType.
*/
@javax.persistence.Column(name = "ACCOUNTTYPE")
public java.lang.Integer getAccountType() {
return accountType;
}
/**
* Set the accountType.
*
* @param accountType The accountType.
*/
public void setAccountType(java.lang.Integer accountType) {
this.accountType = accountType;
}
/** Regular field. */
private java.math.BigDecimal money;
/**
* set the money.
*
* @param money The money.
*/
@javax.persistence.Column(name = "MONEY")
public void setMoney(java.math.BigDecimal money) {
this.money = money;
}
/**
* get the money.
*
* @return The accountType.
*/
public java.math.BigDecimal getMoney() {
if (money==null) return new BigDecimal(0);
return money.setScale(2,BigDecimal.ROUND_HALF_UP);
}
/** Regular field. */
private java.lang.Integer operateType;
/**
* Get the operateType.
*
* @return The operateType.
*/
@javax.persistence.Column(name = "OPERATORTYPE")
public java.lang.Integer getOperateType() {
return operateType;
}
/**
* Set the operateType.
*
* @param operateType The operateType.
*/
public void setOperateType(java.lang.Integer operateType) {
this.operateType = operateType;
}
/** Regular field. */
private java.util.Date operateDate;
/**
* Get the operateDate.
*
* @return The operateDate.
*/
@javax.persistence.Column(name = "OPERATEDATE")
public java.util.Date getOperateDate() {
return operateDate;
}
/**
* Set the operateDate.
*
* @param operateDate The operateDate.
*/
public void setOperateDate(java.util.Date operateDate) {
this.operateDate = operateDate;
}
/** Regular field. */
private java.lang.String comment;
/**
* Get the comment.
*
* @return The comment.
*/
@javax.persistence.Column(name = "COMMENTS")
public java.lang.String getComment() {
return comment;
}
/**
* Set the comment.
*
* @param comment The comment.
*/
public void setComment(java.lang.String comment) {
this.comment = comment;
}
private BoothEntity boothIdIn = null;
@ManyToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
@JoinColumn(name = "BOOTHIDIN")
public BoothEntity getBoothIdIn() {
return boothIdIn;
}
public void setBoothIdIn(BoothEntity boothIdIn) {
this.boothIdIn = boothIdIn;
}
private BoothEntity boothIdOut = null;
@ManyToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
@JoinColumn(name = "BOOTHIDOUT")
public BoothEntity getBoothIdOut() {
return boothIdOut;
}
public void setBoothIdOut(BoothEntity boothIdOut) {
this.boothIdOut = boothIdOut;
}
private OperatorEntity operatorID = null;
@ManyToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER)
@JoinColumn(name = "OPERATORID")
public OperatorEntity getOperatorID() {
return operatorID;
}
public void setOperatorID(OperatorEntity operatorID) {
this.operatorID = operatorID;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -