Subversion Repositories SmartDukaan

Rev

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