Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35038 aman 1
package com.spice.profitmandi.dao.entity.onBoarding;
2
 
3
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "fofo.loi_audit_trail")
10
public class LoiAuditTrail {
11
 
12
    @Id
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    private Integer id;
15
 
16
    @Column(name = "loi_id", nullable = false)
17
    private Integer loiId;
18
 
19
    @Column(name = "refer_id")
20
    private Integer referId;
21
 
22
    @Column(name = "refer_by")
23
    private String referBy;
24
 
25
    @Column(name = "filled_by")
26
    private String filledBy;
27
 
28
    @Column(name = "franchisee_name")
29
    private String franchiseeName;
30
 
31
    @Column(name = "company_name")
32
    private String companyName;
33
 
34
    @Column(name = "brand_type")
35
    private StoreType brandType;
36
 
37
    @Column(name = "brand_fee_amount")
38
    private Double brandFeeAmount;
39
 
40
    @Column(name = "payment_mode")
41
    private String paymentMode;
42
 
43
    @Column(name = "total_commitment")
44
    private Double totalCommitment;
45
 
46
    @Column(name = "loi_otp")
47
    private String loiOtp;
48
 
49
    @Column(name = "loi_generated_on")
50
    private LocalDateTime loiGeneratedOn;
51
 
52
    @Column(name = "loi_signed_on")
53
    private LocalDateTime loiSignedOn;
54
 
55
    @Column(name = "document_hash", length = 64, nullable = false)
56
    private String documentHash;
57
 
58
    @Column(name = "prev_hash", length = 64)
59
    private String prevHash;
60
 
61
    @Column(name = "ip_address", length = 45)
62
    private String ipAddress;
63
 
64
    @Column(name = "created_at")
65
    private LocalDateTime createdAt = LocalDateTime.now();
66
 
67
    public LoiAuditTrail() {
68
    }
69
 
70
    public LoiAuditTrail(Integer id, Integer loiId, Integer referId, String referBy, String filledBy, String franchiseeName, String companyName, StoreType brandType, Double brandFeeAmount, String paymentMode, Double totalCommitment, String loiOtp, LocalDateTime loiGeneratedOn, LocalDateTime loiSignedOn, String documentHash, String prevHash, String ipAddress, LocalDateTime createdAt) {
71
        this.id = id;
72
        this.loiId = loiId;
73
        this.referId = referId;
74
        this.referBy = referBy;
75
        this.filledBy = filledBy;
76
        this.franchiseeName = franchiseeName;
77
        this.companyName = companyName;
78
        this.brandType = brandType;
79
        this.brandFeeAmount = brandFeeAmount;
80
        this.paymentMode = paymentMode;
81
        this.totalCommitment = totalCommitment;
82
        this.loiOtp = loiOtp;
83
        this.loiGeneratedOn = loiGeneratedOn;
84
        this.loiSignedOn = loiSignedOn;
85
        this.documentHash = documentHash;
86
        this.prevHash = prevHash;
87
        this.ipAddress = ipAddress;
88
        this.createdAt = createdAt;
89
    }
90
 
91
    public Integer getId() {
92
        return id;
93
    }
94
 
95
    public void setId(Integer id) {
96
        this.id = id;
97
    }
98
 
99
    public Integer getLoiId() {
100
        return loiId;
101
    }
102
 
103
    public void setLoiId(Integer loiId) {
104
        this.loiId = loiId;
105
    }
106
 
107
    public Integer getReferId() {
108
        return referId;
109
    }
110
 
111
    public void setReferId(Integer referId) {
112
        this.referId = referId;
113
    }
114
 
115
    public String getReferBy() {
116
        return referBy;
117
    }
118
 
119
    public void setReferBy(String referBy) {
120
        this.referBy = referBy;
121
    }
122
 
123
    public String getFilledBy() {
124
        return filledBy;
125
    }
126
 
127
    public void setFilledBy(String filledBy) {
128
        this.filledBy = filledBy;
129
    }
130
 
131
    public String getFranchiseeName() {
132
        return franchiseeName;
133
    }
134
 
135
    public void setFranchiseeName(String franchiseeName) {
136
        this.franchiseeName = franchiseeName;
137
    }
138
 
139
    public String getCompanyName() {
140
        return companyName;
141
    }
142
 
143
    public void setCompanyName(String companyName) {
144
        this.companyName = companyName;
145
    }
146
 
147
    public StoreType getBrandType() {
148
        return brandType;
149
    }
150
 
151
    public void setBrandType(StoreType brandType) {
152
        this.brandType = brandType;
153
    }
154
 
155
    public Double getBrandFeeAmount() {
156
        return brandFeeAmount;
157
    }
158
 
159
    public void setBrandFeeAmount(Double brandFeeAmount) {
160
        this.brandFeeAmount = brandFeeAmount;
161
    }
162
 
163
    public String getPaymentMode() {
164
        return paymentMode;
165
    }
166
 
167
    public void setPaymentMode(String paymentMode) {
168
        this.paymentMode = paymentMode;
169
    }
170
 
171
    public Double getTotalCommitment() {
172
        return totalCommitment;
173
    }
174
 
175
    public void setTotalCommitment(Double totalCommitment) {
176
        this.totalCommitment = totalCommitment;
177
    }
178
 
179
    public String getLoiOtp() {
180
        return loiOtp;
181
    }
182
 
183
    public void setLoiOtp(String loiOtp) {
184
        this.loiOtp = loiOtp;
185
    }
186
 
187
    public LocalDateTime getLoiGeneratedOn() {
188
        return loiGeneratedOn;
189
    }
190
 
191
    public void setLoiGeneratedOn(LocalDateTime loiGeneratedOn) {
192
        this.loiGeneratedOn = loiGeneratedOn;
193
    }
194
 
195
    public LocalDateTime getLoiSignedOn() {
196
        return loiSignedOn;
197
    }
198
 
199
    public void setLoiSignedOn(LocalDateTime loiSignedOn) {
200
        this.loiSignedOn = loiSignedOn;
201
    }
202
 
203
    public String getDocumentHash() {
204
        return documentHash;
205
    }
206
 
207
    public void setDocumentHash(String documentHash) {
208
        this.documentHash = documentHash;
209
    }
210
 
211
    public String getPrevHash() {
212
        return prevHash;
213
    }
214
 
215
    public void setPrevHash(String prevHash) {
216
        this.prevHash = prevHash;
217
    }
218
 
219
    public String getIpAddress() {
220
        return ipAddress;
221
    }
222
 
223
    public void setIpAddress(String ipAddress) {
224
        this.ipAddress = ipAddress;
225
    }
226
 
227
    public LocalDateTime getCreatedAt() {
228
        return createdAt;
229
    }
230
 
231
    public void setCreatedAt(LocalDateTime createdAt) {
232
        this.createdAt = createdAt;
233
    }
234
 
235
    @Override
236
    public String toString() {
237
        return "LoiAuditTrail{" +
238
                "id=" + id +
239
                ", loiId=" + loiId +
240
                ", referId=" + referId +
241
                ", referBy='" + referBy + '\'' +
242
                ", filledBy='" + filledBy + '\'' +
243
                ", franchiseeName='" + franchiseeName + '\'' +
244
                ", companyName='" + companyName + '\'' +
245
                ", brandType='" + brandType + '\'' +
246
                ", brandFeeAmount=" + brandFeeAmount +
247
                ", paymentMode='" + paymentMode + '\'' +
248
                ", totalCommitment=" + totalCommitment +
249
                ", loiOtp=" + loiOtp +
250
                ", loiGeneratedOn=" + loiGeneratedOn +
251
                ", loiSignedOn=" + loiSignedOn +
252
                ", documentHash='" + documentHash + '\'' +
253
                ", prevHash='" + prevHash + '\'' +
254
                ", ipAddress='" + ipAddress + '\'' +
255
                ", createdAt=" + createdAt +
256
                '}';
257
    }
258
}
259