Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
35289 amit 1
package com.spice.profitmandi.dao.entity.fofo;
35275 aman 2
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
35289 amit 7
import java.util.Objects;
35275 aman 8
 
9
@Entity
10
@Table(name = "fofo.trial_form")
35289 amit 11
public class TrialForm {
35275 aman 12
 
13
    @Id
14
    @GeneratedValue(strategy = GenerationType.IDENTITY)
15
    @Column(name = "id")
16
    private int id;
17
 
18
    @Column(name = "first_name", nullable = false, length = 50)
19
    private String firstName;
20
 
21
    @Column(name = "last_name", length = 50)
22
    private String lastName;
23
 
24
    @Column(name = "email", nullable = false, length = 100)
25
    private String email;
26
 
27
    @Column(name = "mobile", nullable = false, length = 10)
28
    private String mobile;
29
 
30
    @Column(name = "pan_document_id", nullable = false)
31
    private Integer panDocumentId;
32
 
33
    @Column(name = "aadhaar_document_id", nullable = false)
34
    private Integer aadhaarDocumentId;
35
 
36
    @Column(name = "gst_number", nullable = false, length = 15)
37
    private String gstNumber;
38
 
39
    @Column(name = "business_name", nullable = false, length = 200)
40
    private String businessName;
41
 
42
    @Column(name = "address_line1", nullable = false, length = 255)
43
    private String addressLine1;
44
 
45
    @Column(name = "address_line2", length = 255)
46
    private String addressLine2;
47
 
48
    @Column(name = "city", nullable = false, length = 100)
49
    private String city;
50
 
51
    @Column(name = "state", nullable = false, length = 100)
52
    private String state;
53
 
54
    @Column(name = "pincode", nullable = false, length = 6)
55
    private String pincode;
56
 
35360 aman 57
    @Column(name = "asm_id")
58
    private Integer asmId;
35275 aman 59
 
35360 aman 60
    @Column(name = "bm_id")
61
    private Integer bmId;
62
 
63
    @Column(name = "refer_by_email")
64
    private String referByEmail;
65
 
35275 aman 66
    @Column(name = "status", length = 20)
35289 amit 67
    @Enumerated(EnumType.STRING)
68
    private ProfitMandiConstants.Status status;
35275 aman 69
 
70
    @Column(name = "created_on")
71
    private LocalDateTime createdOn;
72
 
73
    @Column(name = "updated_on")
74
    private LocalDateTime updatedOn;
75
 
35289 amit 76
    public TrialForm() {
35275 aman 77
    }
78
 
35360 aman 79
    public TrialForm(int id, String firstName, String lastName, String email, String mobile, Integer panDocumentId, Integer aadhaarDocumentId, String gstNumber, String businessName, String addressLine1, String addressLine2, String city, String state, String pincode, Integer asmId, Integer bmId, String referByEmail, ProfitMandiConstants.Status status, LocalDateTime createdOn, LocalDateTime updatedOn) {
35275 aman 80
        this.id = id;
81
        this.firstName = firstName;
82
        this.lastName = lastName;
83
        this.email = email;
84
        this.mobile = mobile;
85
        this.panDocumentId = panDocumentId;
86
        this.aadhaarDocumentId = aadhaarDocumentId;
87
        this.gstNumber = gstNumber;
88
        this.businessName = businessName;
89
        this.addressLine1 = addressLine1;
90
        this.addressLine2 = addressLine2;
91
        this.city = city;
92
        this.state = state;
93
        this.pincode = pincode;
35360 aman 94
        this.asmId = asmId;
95
        this.bmId = bmId;
96
        this.referByEmail = referByEmail;
35275 aman 97
        this.status = status;
98
        this.createdOn = createdOn;
99
        this.updatedOn = updatedOn;
100
    }
101
 
102
    public int getId() {
103
        return id;
104
    }
105
 
106
    public void setId(int id) {
107
        this.id = id;
108
    }
109
 
110
    public String getFirstName() {
111
        return firstName;
112
    }
113
 
114
    public void setFirstName(String firstName) {
115
        this.firstName = firstName;
116
    }
117
 
118
    public String getLastName() {
119
        return lastName;
120
    }
121
 
122
    public void setLastName(String lastName) {
123
        this.lastName = lastName;
124
    }
125
 
126
    public String getEmail() {
127
        return email;
128
    }
129
 
130
    public void setEmail(String email) {
131
        this.email = email;
132
    }
133
 
134
    public String getMobile() {
135
        return mobile;
136
    }
137
 
138
    public void setMobile(String mobile) {
139
        this.mobile = mobile;
140
    }
141
 
142
    public Integer getPanDocumentId() {
143
        return panDocumentId;
144
    }
145
 
146
    public void setPanDocumentId(Integer panDocumentId) {
147
        this.panDocumentId = panDocumentId;
148
    }
149
 
150
    public Integer getAadhaarDocumentId() {
151
        return aadhaarDocumentId;
152
    }
153
 
154
    public void setAadhaarDocumentId(Integer aadhaarDocumentId) {
155
        this.aadhaarDocumentId = aadhaarDocumentId;
156
    }
157
 
158
    public String getGstNumber() {
159
        return gstNumber;
160
    }
161
 
162
    public void setGstNumber(String gstNumber) {
163
        this.gstNumber = gstNumber;
164
    }
165
 
166
    public String getBusinessName() {
167
        return businessName;
168
    }
169
 
170
    public void setBusinessName(String businessName) {
171
        this.businessName = businessName;
172
    }
173
 
174
    public String getAddressLine1() {
175
        return addressLine1;
176
    }
177
 
178
    public void setAddressLine1(String addressLine1) {
179
        this.addressLine1 = addressLine1;
180
    }
181
 
182
    public String getAddressLine2() {
183
        return addressLine2;
184
    }
185
 
186
    public void setAddressLine2(String addressLine2) {
187
        this.addressLine2 = addressLine2;
188
    }
189
 
190
    public String getCity() {
191
        return city;
192
    }
193
 
194
    public void setCity(String city) {
195
        this.city = city;
196
    }
197
 
198
    public String getState() {
199
        return state;
200
    }
201
 
202
    public void setState(String state) {
203
        this.state = state;
204
    }
205
 
206
    public String getPincode() {
207
        return pincode;
208
    }
209
 
210
    public void setPincode(String pincode) {
211
        this.pincode = pincode;
212
    }
213
 
214
    public ProfitMandiConstants.Status getStatus() {
215
        return status;
216
    }
217
 
218
    public void setStatus(ProfitMandiConstants.Status status) {
219
        this.status = status;
220
    }
221
 
222
    public LocalDateTime getCreatedOn() {
223
        return createdOn;
224
    }
225
 
226
    public void setCreatedOn(LocalDateTime createdOn) {
227
        this.createdOn = createdOn;
228
    }
229
 
230
    public LocalDateTime getUpdatedOn() {
231
        return updatedOn;
232
    }
233
 
234
    public void setUpdatedOn(LocalDateTime updatedOn) {
235
        this.updatedOn = updatedOn;
236
    }
35289 amit 237
 
35360 aman 238
    public Integer getAsmId() {
239
        return asmId;
240
    }
241
 
242
    public void setAsmId(Integer asmId) {
243
        this.asmId = asmId;
244
    }
245
 
246
    public Integer getBmId() {
247
        return bmId;
248
    }
249
 
250
    public void setBmId(Integer bmId) {
251
        this.bmId = bmId;
252
    }
253
 
254
    public String getReferByEmail() {
255
        return referByEmail;
256
    }
257
 
258
    public void setReferByEmail(String referByEmail) {
259
        this.referByEmail = referByEmail;
260
    }
261
 
35289 amit 262
    @Override
263
    public String toString() {
264
        return "TrialForm{" +
265
                "id=" + id +
266
                ", firstName='" + firstName + '\'' +
267
                ", lastName='" + lastName + '\'' +
268
                ", email='" + email + '\'' +
269
                ", mobile='" + mobile + '\'' +
270
                ", panDocumentId=" + panDocumentId +
271
                ", aadhaarDocumentId=" + aadhaarDocumentId +
272
                ", gstNumber='" + gstNumber + '\'' +
273
                ", businessName='" + businessName + '\'' +
274
                ", addressLine1='" + addressLine1 + '\'' +
275
                ", addressLine2='" + addressLine2 + '\'' +
276
                ", city='" + city + '\'' +
277
                ", state='" + state + '\'' +
278
                ", pincode='" + pincode + '\'' +
35360 aman 279
                ", asmId=" + asmId +
280
                ", bmId=" + bmId +
281
                ", referByEmail='" + referByEmail + '\'' +
35289 amit 282
                ", status=" + status +
283
                ", createdOn=" + createdOn +
284
                ", updatedOn=" + updatedOn +
285
                '}';
286
    }
287
 
288
    @Override
289
    public boolean equals(Object o) {
290
        if (o == null || getClass() != o.getClass()) return false;
291
        TrialForm trialForm = (TrialForm) o;
35360 aman 292
        return id == trialForm.id && Objects.equals(firstName, trialForm.firstName) && Objects.equals(lastName, trialForm.lastName) && Objects.equals(email, trialForm.email) && Objects.equals(mobile, trialForm.mobile) && Objects.equals(panDocumentId, trialForm.panDocumentId) && Objects.equals(aadhaarDocumentId, trialForm.aadhaarDocumentId) && Objects.equals(gstNumber, trialForm.gstNumber) && Objects.equals(businessName, trialForm.businessName) && Objects.equals(addressLine1, trialForm.addressLine1) && Objects.equals(addressLine2, trialForm.addressLine2) && Objects.equals(city, trialForm.city) && Objects.equals(state, trialForm.state) && Objects.equals(pincode, trialForm.pincode) && Objects.equals(asmId, trialForm.asmId) && Objects.equals(bmId, trialForm.bmId) && Objects.equals(referByEmail, trialForm.referByEmail) && status == trialForm.status && Objects.equals(createdOn, trialForm.createdOn) && Objects.equals(updatedOn, trialForm.updatedOn);
35289 amit 293
    }
294
 
295
    @Override
296
    public int hashCode() {
35360 aman 297
        return Objects.hash(id, firstName, lastName, email, mobile, panDocumentId, aadhaarDocumentId, gstNumber, businessName, addressLine1, addressLine2, city, state, pincode, asmId, bmId, referByEmail, status, createdOn, updatedOn);
35289 amit 298
    }
35275 aman 299
}