Subversion Repositories SmartDukaan

Rev

Rev 34907 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34907 aman 1
package com.spice.profitmandi.dao.entity.affiliate;
34947 aman 2
 
34907 aman 3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
34947 aman 4
import com.spice.profitmandi.dao.entity.fofo.Customer;
5
 
34907 aman 6
import javax.persistence.*;
7
import java.time.LocalDateTime;
8
 
9
@Entity
10
@Table(name = "web.affiliate_kyc")
11
public class AffiliateKyc {
12
 
13
    @Id
14
    @GeneratedValue(strategy = GenerationType.IDENTITY)
15
    @Column(name = "id")
16
    private int id;
17
 
18
    @Column(name = "customer_id")
19
    private int customerId;
20
 
21
    @Enumerated(EnumType.STRING)
22
    @Column(name = "document_type")
23
    private ProfitMandiConstants.DocumentType documentType;
24
 
25
    @Column(name = "document_id")
26
    private String documentId;
27
 
28
    @Enumerated(EnumType.STRING)
29
    @Column(name = "status")
30
    private ProfitMandiConstants.Status status = ProfitMandiConstants.Status.PENDING;
31
 
32
    @Column(name = "created_at")
33
    private LocalDateTime createdAt;
34
 
34947 aman 35
    @Column(name = "updated_at")
36
    private LocalDateTime updatedAt;
34907 aman 37
 
34947 aman 38
    @Column(name = "reason")
39
    private String reason;
34907 aman 40
 
34947 aman 41
    @ManyToOne(fetch = FetchType.EAGER)
42
    @JoinColumn(name = "customer_id", referencedColumnName = "id", insertable = false, updatable = false)
43
    private Customer customer;
44
 
45
 
46
    public AffiliateKyc() {
47
    }
48
 
49
    public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt, LocalDateTime updatedAt, String reason, Customer customer) {
34907 aman 50
        this.id = id;
51
        this.customerId = customerId;
52
        this.documentType = documentType;
53
        this.documentId = documentId;
54
        this.status = status;
55
        this.createdAt = createdAt;
34947 aman 56
        this.updatedAt = updatedAt;
57
        this.reason = reason;
58
        this.customer = customer;
34907 aman 59
    }
60
 
61
    public int getId() {
62
        return id;
63
    }
64
 
65
    public void setId(int id) {
66
        this.id = id;
67
    }
68
 
69
    public int getCustomerId() {
70
        return customerId;
71
    }
72
 
73
    public void setCustomerId(int customerId) {
74
        this.customerId = customerId;
75
    }
76
 
77
    public ProfitMandiConstants.DocumentType getDocumentType() {
78
        return documentType;
79
    }
80
 
81
    public void setDocumentType(ProfitMandiConstants.DocumentType documentType) {
82
        this.documentType = documentType;
83
    }
84
 
85
    public String getDocumentId() {
86
        return documentId;
87
    }
88
 
89
    public void setDocumentId(String documentId) {
90
        this.documentId = documentId;
91
    }
92
 
93
    public ProfitMandiConstants.Status getStatus() {
94
        return status;
95
    }
96
 
97
    public void setStatus(ProfitMandiConstants.Status status) {
98
        this.status = status;
99
    }
100
 
101
    public LocalDateTime getCreatedAt() {
102
        return createdAt;
103
    }
104
 
105
    public void setCreatedAt(LocalDateTime createdAt) {
106
        this.createdAt = createdAt;
107
    }
108
 
34947 aman 109
    public LocalDateTime getUpdatedAt() {
110
        return updatedAt;
111
    }
112
 
113
    public void setUpdatedAt(LocalDateTime updatedAt) {
114
        this.updatedAt = updatedAt;
115
    }
116
 
117
    public String getReason() {
118
        return reason;
119
    }
120
 
121
    public void setReason(String reason) {
122
        this.reason = reason;
123
    }
124
 
125
    public Customer getCustomer() {
126
        return customer;
127
    }
128
 
129
    public void setCustomer(Customer customer) {
130
        this.customer = customer;
131
    }
132
 
34907 aman 133
    @Override
134
    public String toString() {
135
        return "AffiliateKyc{" +
136
                "id=" + id +
137
                ", customerId=" + customerId +
138
                ", documentType=" + documentType +
139
                ", documentId='" + documentId + '\'' +
140
                ", status=" + status +
141
                ", createdAt=" + createdAt +
34947 aman 142
                ", updatedAt=" + updatedAt +
143
                ", reason='" + reason + '\'' +
144
                ", customer=" + customer +
34907 aman 145
                '}';
146
    }
147
}