📄 cardentity.java
字号:
package com.ufmobile.business.account.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.text.SimpleDateFormat;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.ufmobile.mstreet.util.DateUtil;
@SuppressWarnings("serial")
@javax.persistence.Entity
@javax.persistence.Table(name = "TB_BUSINESS_CARD")
@javax.persistence.SequenceGenerator(name = "TB_BUSINESS_CARD_SEQ", sequenceName = "S_BUSINESS_CARD", allocationSize = 25)
public class CardEntity implements Serializable {
public final static int CARDTYPE_CAPACITY = 0; //流量卡
public final static int CARDTYPE_SERVICE = 1; //服务卡
public final static int DR_DELETE = 1; //删除标识,已删除
public final static int DR_NOTDELETE = 0; //删除标识,未删除
public final static Boolean FREEZE_FREEZED = Boolean.TRUE; //冻结标识,已冻结
public final static Boolean FREEZE_NOTFREEZE = Boolean.FALSE; //冻结标识,未冻结
public final static int USEDCOLS = 18; //数据表内使用到的有效列数
public final static int AGENTEXPORTCOLS = 10; //代理商导出报表的列数
public final static Boolean ISLAST_TRUE = Boolean.TRUE; //最新纪录标识,是最新
public final static Boolean ISLAST_FALSE = Boolean.FALSE; //最新纪录标识,不是最新
public final static Boolean ISOVER_TRUE = Boolean.TRUE; //充值完结标识,充值已完
public final static Boolean ISOVER_FALSE = Boolean.FALSE; //充值完结标识,充值未完
/**
* Primary key. only Long type primary key is allowed in this modified
* program. --- Helloween.
*/
private Long id;
/**
* 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 = "TB_BUSINESS_CARD_SEQ")
@javax.persistence.Column(name = "ID")
public Long getId() {
return id;
}
/**
* Set the primary key.
*
* @param id The primary key.
*/
public void setId(Long id) {
this.id = id;
}
/** Regular field. */
private java.lang.String code;
/**
* Get the code.
*
* @return The code.
*/
@javax.persistence.Column(name = "CODE")
public java.lang.String getCode() {
return code;
}
/**
* Set the code.
*
* @param code The code.
*/
public void setCode(java.lang.String code) {
this.code = code;
}
/** Regular field. */
private Integer cardtype;
/**
* Get the cardtype.
*
* @return The cardtype.
*/
@javax.persistence.Column(name = "CARDTYPE")
public Integer getCardtype() {
return cardtype;
}
/**
* Set the cardtype.
*
* @param cardtype The cardtype.
*/
public void setCardtype(Integer cardtype) {
this.cardtype = cardtype;
}
/** Regular field. */
private String agent;
/**
* Get the agent.
*
* @return The agent.
*/
@javax.persistence.Column(name = "AGENT")
public String getAgent() {
return agent;
}
/**
* Set the agent.
*
* @param agent The agent.
*/
public void setAgent(String agent) {
this.agent = agent;
}
/** Regular field. */
private Boolean islast;
/**
* Get the islast.
*
* @return The islast.
*/
@javax.persistence.Column(name = "ISLAST")
public Boolean getIslast() {
return islast;
}
/**
* Set the islast.
*
* @param islast The islast.
*/
public void setIslast(Boolean islast) {
this.islast = islast;
}
/** Regular field. */
private Boolean isover;
/**
* Get the isover.
*
* @return The isover.
*/
@javax.persistence.Column(name = "ISOVER")
public Boolean getIsover() {
return isover;
}
/**
* Set the isover.
*
* @param isover The isover.
*/
public void setIsover(Boolean isover) {
this.isover = isover;
}
/** Regular field. */
private java.math.BigDecimal moneny;
/**
* Get the moneny.
*
* @return The moneny.
*/
@javax.persistence.Column(name = "MONENY")
public java.math.BigDecimal getMoneny() {
if (moneny == null)
return new BigDecimal(0);
return moneny;
}
/**
* Set the moneny.
*
* @param moneny The moneny.
*/
public void setMoneny(java.math.BigDecimal moneny) {
this.moneny = moneny;
}
/** Regular field. */
private java.math.BigDecimal usedmoneny;
/**
* Get the usedmoneny.
*
* @return The usedmoneny.
*/
@javax.persistence.Column(name = "USEDMONENY")
public java.math.BigDecimal getUsedmoneny() {
if (usedmoneny == null)
return new BigDecimal(0);
return usedmoneny;
}
/**
* Set the usedmoneny.
*
* @param usedmoneny The usedmoneny.
*/
public void setUsedmoneny(java.math.BigDecimal usedmoneny) {
this.usedmoneny = usedmoneny;
}
/** Regular field. */
private java.math.BigDecimal curmoneny;
/**
* Get the curmoneny.
*
* @return The curmoneny.
*/
@javax.persistence.Column(name = "CURMONENY")
public java.math.BigDecimal getCurmoneny() {
if (curmoneny == null)
return new BigDecimal(0);
return curmoneny;
}
/**
* Set the curmoneny.
*
* @param curmoneny The curmoneny.
*/
public void setCurmoneny(java.math.BigDecimal curmoneny) {
this.curmoneny = curmoneny;
}
/** Regular field. */
private Boolean freeze;
/**
* Get the freeze.
*
* @return The freeze.
*/
@javax.persistence.Column(name = "FREEZE")
public Boolean getFreeze() {
return freeze;
}
/**
* Set the freeze.
*
* @param freeze The freeze.
*/
public void setFreeze(Boolean freeze) {
this.freeze = freeze;
}
/** Regular field. */
private java.lang.String cardoperator;
/**
* Get the cardoperator.
*
* @return The cardoperator.
*/
@javax.persistence.Column(name = "CARDOPERATOR")
public java.lang.String getCardoperator() {
return cardoperator;
}
/**
* Set the cardoperator.
*
* @param cardoperator The cardoperator.
*/
public void setCardoperator(java.lang.String cardoperator) {
this.cardoperator = cardoperator;
}
/** Regular field. */
private java.util.Date opdate;
/**
* Get the opdate.
*
* @return The opdate.
*/
@javax.persistence.Column(name = "OPDATE")
public java.util.Date getOpdate() {
return opdate;
}
/**
* Set the opdate.
*
* @param opdate The opdate.
*/
public void setOpdate(java.util.Date opdate) {
this.opdate = opdate;
}
/** Regular field. pssword */
private java.lang.String password;
/**
* Get the cardoperator.
*
* @return The cardoperator.
*/
@javax.persistence.Column(name = "pssword")
public java.lang.String getPassword() {
return password;
}
/**
* Set the cardoperator.
*
* @param cardoperator The cardoperator.
*/
public void setPassword(java.lang.String password) {
this.password = password;
}
/** Regular field. */
private java.util.Date saledate;
/**
* Get the opdate.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -