Subversion Repositories SmartDukaan

Rev

Rev 33710 | Rev 33909 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33507 tejus.loha 1
package com.spice.profitmandi.dao.entity.onBoarding;
2
 
3
import com.spice.profitmandi.common.enumuration.BusinessType;
4
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.LoiStatus;
5
import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;
6
 
7
import javax.persistence.*;
8
import java.time.LocalDate;
9
import java.time.LocalDateTime;
10
import java.util.Objects;
11
 
12
@Entity
13
@Table(name = "fofo.loi_form")
14
public class LoiForm {
15
    @Id
16
    @GeneratedValue(strategy = GenerationType.IDENTITY)
17
    @Column(name = "id")
18
    private int id;
19
    @Column(name = "referId")
20
    private int referId;
21
    @Column(name = "referBy")
22
    private String referBy;
33577 tejus.loha 23
    @Column(name = "filledBy")
24
    private String filledBy;
33507 tejus.loha 25
    @Column(name = "businessType")
26
    @Enumerated(EnumType.STRING)
27
    private BusinessType businessType;
28
    @Column(name = "acquiredDate")
29
    private LocalDateTime acquiredDate;
30
    @Column(name = "firstName")
31
    private String firstName;
32
    @Column(name = "lastName")
33
    private String lastName;
34
    @Transient
35
    private String fullName;
36
    @Column(name = "mobile")
37
    private long mobile;
38
    @Column(name = "landline")
39
    private long landline;
40
    @Column(name = "email")
41
    private String email;
42
    @Column(name = "dob")
43
    private LocalDate dob;
44
    @Column(name = "anniversaryDate")
45
    private LocalDate anniversaryDate;
46
    @Column(name = "panNo")
47
    private String panNo;
48
    @Column(name = "adharNo")
49
    private long adharNo;
50
    @Column(name = "gstNo")
51
    private String gstNo;
52
    @Column(name = "companyName")
53
    private String companyName;
54
    @Column(name = "gstPin")
55
    private int gstPin;
56
    @Column(name = "gstState")
57
    private String gstState;
58
    @Column(name = "gstDistrict")
59
    private String gstDistrict;
60
    @Column(name = "gstCity")
61
    private String gstCity;
62
    @Column(name = "bankName")
63
    private String bankName;
64
    @Column(name = "ifscCode")
65
    private String ifscCode;
66
    @Column(name = "accountNo")
67
    private long accountNo;
68
    @Column(name = "AWValue")
69
    private int agreeWalletValue;
70
    @Column(name = "storeArea")
71
    private double storeArea;
72
    @Column(name = "storePotential")
73
    private double storePotential;
74
    @Column(name = "agreedBrandFees")
75
    private double agreedBrandFees;
76
    @Column(name = "brandType")
77
    @Enumerated(EnumType.STRING)
78
    private StoreType brandType;
79
    @Column(name = "brandFeeId")
80
    private int brandFeeId;
81
    @Column(name = "status")
82
    @Enumerated(EnumType.STRING)
83
    private LoiStatus Status;
84
    @Column(name = "loiSignedOn")
85
    private LocalDateTime loiSignedOn;
86
    @Column(name = "loiSignOtp")
87
    private String loiSignOtp;
88
    @Column(name = "loiGeneratedOn")
89
    private LocalDateTime loiGeneratedOn;
90
    @Column(name = "loiDoc")
91
    private int loiDoc;
92
    @Column(name = "lessCommitReason")
93
    private String lessCommitReason;
33710 tejus.loha 94
    @Column(name = "onBoarding_id")
95
    private int onBoardingId;
33845 tejus.loha 96
    @Column(name = "createOn")
97
    private LocalDateTime createOn;
98
    @Column(name = "loiApprover")
99
    private String loiApprover;
100
    @Column(name = "loiApproved")
101
    private boolean loiApproved;
33507 tejus.loha 102
 
33845 tejus.loha 103
    public boolean isLoiApproved() {
104
        return loiApproved;
105
    }
106
 
107
    public void setLoiApproved(boolean loiApproved) {
108
        this.loiApproved = loiApproved;
109
    }
110
 
111
    public String getLoiApprover() {
112
        return loiApprover;
113
    }
114
 
115
    public void setLoiApprover(String loiApprover) {
116
        this.loiApprover = loiApprover;
117
    }
118
 
119
    public LocalDateTime getCreateOn() {
120
        return createOn;
121
    }
122
 
123
    public void setCreateOn(LocalDateTime createOn) {
124
        this.createOn = createOn;
125
    }
126
 
33710 tejus.loha 127
    public int getOnBoardingId() {
128
        return onBoardingId;
129
    }
33658 tejus.loha 130
 
33710 tejus.loha 131
    public void setOnBoardingId(int onBoardingId) {
132
        this.onBoardingId = onBoardingId;
133
    }
134
 
33507 tejus.loha 135
    public int getBrandFeeId() {
136
        return brandFeeId;
137
    }
138
 
139
    public void setBrandFeeId(int brandFeeId) {
140
        this.brandFeeId = brandFeeId;
141
    }
142
 
143
    public String getLessCommitReason() {
144
        return lessCommitReason;
145
    }
146
 
147
    public void setLessCommitReason(String lessCommitReason) {
148
        this.lessCommitReason = lessCommitReason;
149
    }
150
 
151
 
152
    public int getId() {
153
        return id;
154
    }
155
 
156
    public void setId(int id) {
157
        this.id = id;
158
    }
159
 
160
    public int getReferId() {
161
        return referId;
162
    }
163
 
164
    public void setReferId(int referId) {
165
        this.referId = referId;
166
    }
167
 
168
    public String getReferBy() {
169
        return referBy;
170
    }
171
 
172
    public void setReferBy(String referBy) {
173
        this.referBy = referBy;
174
    }
175
 
33577 tejus.loha 176
    public String getFilledBy() {
177
        return filledBy;
178
    }
179
 
180
    public void setFilledBy(String filledBy) {
181
        this.filledBy = filledBy;
182
    }
183
 
33507 tejus.loha 184
    public BusinessType getBusinessType() {
185
        return businessType;
186
    }
187
 
188
    public void setBusinessType(BusinessType businessType) {
189
        this.businessType = businessType;
190
    }
191
 
192
    public LocalDateTime getAcquiredDate() {
193
        return acquiredDate;
194
    }
195
 
196
    public void setAcquiredDate(LocalDateTime acquiredDate) {
197
        this.acquiredDate = acquiredDate;
198
    }
199
 
200
    public String getFirstName() {
201
        return firstName;
202
    }
203
 
204
    public void setFirstName(String firstName) {
205
        this.firstName = firstName;
206
    }
207
 
208
    public long getMobile() {
209
        return mobile;
210
    }
211
 
212
    public void setMobile(long mobile) {
213
        this.mobile = mobile;
214
    }
215
 
216
    public String getFullName() {
217
        return firstName + " " + lastName;
218
    }
219
 
220
    public void setFullName(String fullName) {
221
        this.fullName = fullName;
222
    }
223
 
224
    public int getAgreeWalletValue() {
225
        return agreeWalletValue;
226
    }
227
 
228
    public void setAgreeWalletValue(int agreeWalletValue) {
229
        this.agreeWalletValue = agreeWalletValue;
230
    }
231
 
232
    public LocalDate getDob() {
233
        return dob;
234
    }
235
 
236
    public void setDob(LocalDate dob) {
237
        this.dob = dob;
238
    }
239
 
240
    public long getLandline() {
241
        return landline;
242
    }
243
 
244
    public void setLandline(long landline) {
245
        this.landline = landline;
246
    }
247
 
248
    public String getEmail() {
249
        return email;
250
    }
251
 
252
    public void setEmail(String email) {
253
        this.email = email;
254
    }
255
 
256
    public LocalDate getAnniversaryDate() {
257
        return anniversaryDate;
258
    }
259
 
260
    public void setAnniversaryDate(LocalDate anniversaryDate) {
261
        this.anniversaryDate = anniversaryDate;
262
    }
263
 
264
    public String getPanNo() {
265
        return panNo;
266
    }
267
 
268
    public void setPanNo(String panNo) {
269
        this.panNo = panNo;
270
    }
271
 
272
    public long getAdharNo() {
273
        return adharNo;
274
    }
275
 
276
    public void setAdharNo(long adharNo) {
277
        this.adharNo = adharNo;
278
    }
279
 
280
    public String getGstNo() {
281
        return gstNo;
282
    }
283
 
284
    public void setGstNo(String gstNo) {
285
        this.gstNo = gstNo;
286
    }
287
 
288
    public String getCompanyName() {
289
        return companyName;
290
    }
291
 
292
    public void setCompanyName(String companyName) {
293
        this.companyName = companyName;
294
    }
295
 
296
    public String getGstState() {
297
        return gstState;
298
    }
299
 
300
    public void setGstState(String gstState) {
301
        this.gstState = gstState;
302
    }
303
 
304
    public String getGstDistrict() {
305
        return gstDistrict;
306
    }
307
 
308
    public void setGstDistrict(String gstDistrict) {
309
        this.gstDistrict = gstDistrict;
310
    }
311
 
312
    public String getGstCity() {
313
        return gstCity;
314
    }
315
 
316
    public void setGstCity(String gstCity) {
317
        this.gstCity = gstCity;
318
    }
319
 
320
    public String getLastName() {
321
        return lastName;
322
    }
323
 
324
    public void setLastName(String lastName) {
325
        this.lastName = lastName;
326
    }
327
 
328
    public int getGstPin() {
329
        return gstPin;
330
    }
331
 
332
    public void setGstPin(int gstPin) {
333
        this.gstPin = gstPin;
334
    }
335
 
336
    public String getBankName() {
337
        return bankName;
338
    }
339
 
340
    public void setBankName(String bankName) {
341
        this.bankName = bankName;
342
    }
343
 
344
    public String getIfscCode() {
345
        return ifscCode;
346
    }
347
 
348
    public void setIfscCode(String ifscCode) {
349
        this.ifscCode = ifscCode;
350
    }
351
 
352
    public long getAccountNo() {
353
        return accountNo;
354
    }
355
 
356
    public void setAccountNo(long accountNo) {
357
        this.accountNo = accountNo;
358
    }
359
 
360
    public double getStoreArea() {
361
        return storeArea;
362
    }
363
 
364
    public void setStoreArea(double storeArea) {
365
        this.storeArea = storeArea;
366
    }
367
 
368
    public double getStorePotential() {
369
        return storePotential;
370
    }
371
 
372
    public void setStorePotential(double storePotential) {
373
        this.storePotential = storePotential;
374
    }
375
 
376
 
377
    public StoreType getBrandType() {
378
        return brandType;
379
    }
380
 
381
    public void setBrandType(StoreType brandType) {
382
        this.brandType = brandType;
383
    }
384
 
385
    public double getAgreedBrandFees() {
386
        return agreedBrandFees;
387
    }
388
 
389
    public void setAgreedBrandFees(double agreedBrandFees) {
390
        this.agreedBrandFees = agreedBrandFees;
391
    }
392
 
393
    public LoiStatus getStatus() {
394
        return Status;
395
    }
396
 
397
    public void setStatus(LoiStatus status) {
398
        this.Status = status;
399
    }
400
 
401
    public LocalDateTime getLoiSignedOn() {
402
        return loiSignedOn;
403
    }
404
 
405
    public void setLoiSignedOn(LocalDateTime loiSignedOn) {
406
        this.loiSignedOn = loiSignedOn;
407
    }
408
 
409
    public LocalDateTime getLoiGeneratedOn() {
410
        return loiGeneratedOn;
411
    }
412
 
413
    public void setLoiGeneratedOn(LocalDateTime loiGeneratedOn) {
414
        this.loiGeneratedOn = loiGeneratedOn;
415
    }
416
 
417
    public String getLoiSignOtp() {
418
        return loiSignOtp;
419
    }
420
 
421
    public void setLoiSignOtp(String loiSignOtp) {
422
        this.loiSignOtp = loiSignOtp;
423
    }
424
 
425
 
426
    public int getLoiDoc() {
427
        return loiDoc;
428
    }
429
 
430
    public void setLoiDoc(int loiDoc) {
431
        this.loiDoc = loiDoc;
432
    }
433
 
434
    @Override
435
    public boolean equals(Object o) {
436
        if (this == o) return true;
437
        if (o == null || getClass() != o.getClass()) return false;
438
        LoiForm that = (LoiForm) o;
439
        return referId == that.referId;
440
    }
441
 
442
    @Override
443
    public int hashCode() {
444
        return Objects.hash(referId);
445
    }
446
 
447
    @Override
448
    public String toString() {
449
        return "LoiForm{" +
450
                "id=" + id +
451
                ", referId=" + referId +
452
                ", referBy='" + referBy + '\'' +
33658 tejus.loha 453
                ", filledBy='" + filledBy + '\'' +
33507 tejus.loha 454
                ", businessType=" + businessType +
455
                ", acquiredDate=" + acquiredDate +
456
                ", firstName='" + firstName + '\'' +
457
                ", lastName='" + lastName + '\'' +
458
                ", fullName='" + fullName + '\'' +
459
                ", mobile=" + mobile +
460
                ", landline=" + landline +
461
                ", email='" + email + '\'' +
462
                ", dob=" + dob +
463
                ", anniversaryDate=" + anniversaryDate +
464
                ", panNo='" + panNo + '\'' +
465
                ", adharNo=" + adharNo +
466
                ", gstNo='" + gstNo + '\'' +
467
                ", companyName='" + companyName + '\'' +
468
                ", gstPin=" + gstPin +
469
                ", gstState='" + gstState + '\'' +
470
                ", gstDistrict='" + gstDistrict + '\'' +
471
                ", gstCity='" + gstCity + '\'' +
472
                ", bankName='" + bankName + '\'' +
473
                ", ifscCode='" + ifscCode + '\'' +
474
                ", accountNo=" + accountNo +
475
                ", agreeWalletValue=" + agreeWalletValue +
476
                ", storeArea=" + storeArea +
477
                ", storePotential=" + storePotential +
478
                ", agreedBrandFees=" + agreedBrandFees +
479
                ", brandType=" + brandType +
480
                ", brandFeeId=" + brandFeeId +
481
                ", Status=" + Status +
482
                ", loiSignedOn=" + loiSignedOn +
483
                ", loiSignOtp='" + loiSignOtp + '\'' +
484
                ", loiGeneratedOn=" + loiGeneratedOn +
485
                ", loiDoc=" + loiDoc +
486
                ", lessCommitReason='" + lessCommitReason + '\'' +
33845 tejus.loha 487
                ", onBoardingId=" + onBoardingId +
488
                ", createOn=" + createOn +
33507 tejus.loha 489
                '}';
490
    }
491
}