保誠-保戶業務員媒合平台
wayne
2021-12-16 265676c847d64481ca94c376870d3938ea4ab904
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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;
    }
    
    
    
}