Subversion Repositories SmartDukaan

Rev

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