package com.pollex.pam.domain;
|
|
import java.io.Serializable;
|
import java.time.Instant;
|
|
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.Table;
|
|
import org.springframework.data.annotation.CreatedDate;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.pollex.pam.enums.OtpLoginTypeEnum;
|
import com.pollex.pam.enums.OtpTmpStatusEnum;
|
|
@Entity
|
@Table(name = "otp_tmp")
|
public class OtpTmp implements Serializable{
|
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
private Long id;
|
|
@Column(name = "account")
|
private String account;
|
|
@Column(name = "index_key")
|
private String indexKey;
|
|
@Enumerated(value = EnumType.STRING)
|
@Column(name = "status")
|
private OtpTmpStatusEnum status;
|
|
@CreatedDate
|
@Column(name = "created_date", updatable = false)
|
@JsonIgnore
|
private Instant createdDate = Instant.now();
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getIndexKey() {
|
return indexKey;
|
}
|
|
public void setIndexKey(String indexKey) {
|
this.indexKey = indexKey;
|
}
|
|
public OtpTmpStatusEnum getStatus() {
|
return status;
|
}
|
|
public void setStatus(OtpTmpStatusEnum status) {
|
this.status = status;
|
}
|
|
public Instant getCreatedDate() {
|
return createdDate;
|
}
|
|
public void setCreatedDate(Instant createdDate) {
|
this.createdDate = createdDate;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
|
|
}
|