package com.synnex.dto;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="captcha")
public class Captcha implements Serializable{
private static final long serialVersionUID = 1L;
private Integer id;
private Integer userAccountId;
private String deviceId;
private String captcha;
private Date entryDatetime;
private Date expireDatetime;
private String type;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="id")
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Basic
@Column(name="user_account_id")
public Integer getUserAccountId() {
return userAccountId;
}
public void setUserAccountId(Integer userAccountId) {
this.userAccountId = userAccountId;
}
@Basic
@Column(name = "device_id")
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
@Basic
@Column(name = "captcha")
public String getCaptcha() {
return captcha;
}
public void setCaptcha(String captcha) {
this.captcha = captcha;
}
@Basic
@Column(name = "entry_datetime")
public Date getEntryDatetime() {
return entryDatetime;
}
public void setEntryDatetime(Date entryDatetime) {
this.entryDatetime = entryDatetime;
}
@Basic
@Column(name = "expire_datetime")
public Date getExpireDatetime() {
return expireDatetime;
}
public void setExpireDatetime(Date expireDatetime) {
this.expireDatetime = expireDatetime;
}
@Basic
@Column(name="type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static Captcha createTestData(){
Captcha captcha = new Captcha();
captcha.setCaptcha("123456");
captcha.setDeviceId("GAVIN_DEVICE_ANDROID");
captcha.setEntryDatetime(new Date());
captcha.setExpireDatetime(new Date());
captcha.setType("WO");
captcha.setUserAccountId(1);
return captcha;
}
}
评论1
最新资源