Subversion Repositories SmartDukaan

Rev

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