首页>代码>maven管理的spring-data-jpa的demo>/spring-data-jpa/src/main/java/com/foreveross/springdata/jpa/model/Account.java
package com.foreveross.springdata.jpa.model; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import com.foreveross.springdata.jpa.enums.AccountStatus; import com.foreveross.springdata.jpa.enums.Gender; /** * * 功能描述:个人账户信息表 * * 作者: fly * 时间: 下午2:55:15 * 修改记录: * 日期 作者 内容 * ========================================================================== * ========================================================================== */ @Entity @Table(name="ACCOUNT") public class Account{ private static final long serialVersionUID = -1997521432864973647L; //账户id @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(nullable = false,name="ACCTID") protected Long acctId; //姓名 @Column(name="USERNAME") private String userName; //联系电话 @Column(name="TELEPHONE") private String telNum; //性别 @Column(name="SEX") @Enumerated(EnumType.ORDINAL) private Gender sex; //年龄 @Column(name="age") private Integer age; //邮编 @Column(name="POSTALCODE") private String postalCode; //地址 @Lob @Column(name="ADDRESS") private String addr; //主账户余额 @Column(name="MAINBALANCE") private BigDecimal mainBalance; //副账户余额 @Column(name="PROTOBALANCE") private BigDecimal protoBalance; //账户状态 @Column(name="STATUS") @Enumerated(EnumType.ORDINAL) private AccountStatus status; //备注信息 @Lob @Column(name="MEMO") private String memo; //创建时间 @Column(name="CREATEDATETIME") @Temporal(TemporalType.TIMESTAMP) private Date createDateTime; //创建人 @Column(name="CREATEOPERATOR",length=20) private String createOperator; //更新时间 @Column(name="UPDATETIME") @Temporal(TemporalType.TIMESTAMP) private Date updateTime; //是否销户(0:是 1:否) @Column(name="ISCANCEL") private Integer isCancel; //销户时间 @Column(name="CANCELDATE") @Temporal(TemporalType.TIMESTAMP) private Date cancelDate; public Account() { super(); } public Account(String userName, String telNum, Gender sex, Integer age, String postalCode, String addr, BigDecimal mainBalance, BigDecimal protoBalance, AccountStatus status, String memo, Date createDateTime, String createOperator, Date updateTime, Integer isCancel, Date cancelDate) { super(); this.userName = userName; this.telNum = telNum; this.sex = sex; this.age = age; this.postalCode = postalCode; this.addr = addr; this.mainBalance = mainBalance; this.protoBalance = protoBalance; this.status = status; this.memo = memo; this.createDateTime = createDateTime; this.createOperator = createOperator; this.updateTime = updateTime; this.isCancel = isCancel; this.cancelDate = cancelDate; } public Long getAcctId() { return acctId; } public void setAcctId(Long acctId) { this.acctId = acctId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getTelNum() { return telNum; } public void setTelNum(String telNum) { this.telNum = telNum; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public Gender getSex() { return sex; } public void setSex(Gender sex) { this.sex = sex; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public String getAddr() { return addr; } public void setAddr(String addr) { this.addr = addr; } public BigDecimal getMainBalance() { return mainBalance; } public void setMainBalance(BigDecimal mainBalance) { this.mainBalance = mainBalance; } public BigDecimal getProtoBalance() { return protoBalance; } public void setProtoBalance(BigDecimal protoBalance) { this.protoBalance = protoBalance; } public AccountStatus getStatus() { return status; } public void setStatus(AccountStatus status) { this.status = status; } public String getMemo() { return memo; } public void setMemo(String memo) { this.memo = memo; } public Date getCreateDateTime() { return createDateTime; } public void setCreateDateTime(Date createDateTime) { this.createDateTime = createDateTime; } public String getCreateOperator() { return createOperator; } public void setCreateOperator(String createOperator) { this.createOperator = createOperator; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public Integer getIsCancel() { return isCancel; } public void setIsCancel(Integer isCancel) { this.isCancel = isCancel; } public Date getCancelDate() { return cancelDate; } public void setCancelDate(Date cancelDate) { this.cancelDate = cancelDate; } public static long getSerialversionuid() { return serialVersionUID; } }
最近下载更多
madeinheaven LV1
2020年7月19日
gzcopy LV2
2020年4月9日
shijchen LV2
2019年12月19日
gardenia111 LV16
2019年7月30日
gaodaming123 LV3
2019年5月24日
ly3812 LV17
2019年5月12日
hwqhwq LV20
2019年4月8日
888888789 LV9
2019年3月14日
756398953 LV12
2019年3月5日
呦张三在哪啊 LV1
2019年2月28日