Subversion Repositories SmartDukaan

Rev

Rev 34907 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34907 Rev 34947
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.affiliate;
1
package com.spice.profitmandi.dao.entity.affiliate;
-
 
2
 
2
import com.spice.profitmandi.common.model.ProfitMandiConstants;
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
-
 
4
import com.spice.profitmandi.dao.entity.fofo.Customer;
-
 
5
 
3
import javax.persistence.*;
6
import javax.persistence.*;
4
import java.time.LocalDateTime;
7
import java.time.LocalDateTime;
5
 
8
 
6
@Entity
9
@Entity
7
@Table(name = "web.affiliate_kyc")
10
@Table(name = "web.affiliate_kyc")
Line 27... Line 30...
27
    private ProfitMandiConstants.Status status = ProfitMandiConstants.Status.PENDING;
30
    private ProfitMandiConstants.Status status = ProfitMandiConstants.Status.PENDING;
28
 
31
 
29
    @Column(name = "created_at")
32
    @Column(name = "created_at")
30
    private LocalDateTime createdAt;
33
    private LocalDateTime createdAt;
31
 
34
 
-
 
35
    @Column(name = "updated_at")
-
 
36
    private LocalDateTime updatedAt;
-
 
37
 
-
 
38
    @Column(name = "reason")
-
 
39
    private String reason;
32
 
40
 
-
 
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
    }
33
 
48
 
34
    public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt) {
49
    public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt, LocalDateTime updatedAt, String reason, Customer customer) {
35
        this.id = id;
50
        this.id = id;
36
        this.customerId = customerId;
51
        this.customerId = customerId;
37
        this.documentType = documentType;
52
        this.documentType = documentType;
38
        this.documentId = documentId;
53
        this.documentId = documentId;
39
        this.status = status;
54
        this.status = status;
40
        this.createdAt = createdAt;
55
        this.createdAt = createdAt;
-
 
56
        this.updatedAt = updatedAt;
-
 
57
        this.reason = reason;
-
 
58
        this.customer = customer;
41
    }
59
    }
42
 
60
 
43
    public AffiliateKyc() {
-
 
44
 
-
 
45
    }
-
 
46
 
-
 
47
 
-
 
48
    public int getId() {
61
    public int getId() {
49
        return id;
62
        return id;
50
    }
63
    }
51
 
64
 
52
    public void setId(int id) {
65
    public void setId(int id) {
Line 91... Line 104...
91
 
104
 
92
    public void setCreatedAt(LocalDateTime createdAt) {
105
    public void setCreatedAt(LocalDateTime createdAt) {
93
        this.createdAt = createdAt;
106
        this.createdAt = createdAt;
94
    }
107
    }
95
 
108
 
-
 
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
 
96
    @Override
133
    @Override
97
    public String toString() {
134
    public String toString() {
98
        return "AffiliateKyc{" +
135
        return "AffiliateKyc{" +
99
                "id=" + id +
136
                "id=" + id +
100
                ", customerId=" + customerId +
137
                ", customerId=" + customerId +
101
                ", documentType=" + documentType +
138
                ", documentType=" + documentType +
102
                ", documentId='" + documentId + '\'' +
139
                ", documentId='" + documentId + '\'' +
103
                ", status=" + status +
140
                ", status=" + status +
104
                ", createdAt=" + createdAt +
141
                ", createdAt=" + createdAt +
-
 
142
                ", updatedAt=" + updatedAt +
-
 
143
                ", reason='" + reason + '\'' +
-
 
144
                ", customer=" + customer +
105
                '}';
145
                '}';
106
    }
146
    }
107
}
147
}