Subversion Repositories SmartDukaan

Rev

Rev 35275 | Rev 35360 | 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
 
57
 
58
    @Column(name = "status", length = 20)
35289 amit 59
    @Enumerated(EnumType.STRING)
60
    private ProfitMandiConstants.Status status;
35275 aman 61
 
62
    @Column(name = "created_on")
63
    private LocalDateTime createdOn;
64
 
65
    @Column(name = "updated_on")
66
    private LocalDateTime updatedOn;
67
 
35289 amit 68
    public TrialForm() {
35275 aman 69
    }
70
 
35289 amit 71
    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, LocalDateTime trialStartDate, LocalDateTime trialEndDate, ProfitMandiConstants.Status status, LocalDateTime createdOn, LocalDateTime updatedOn) {
35275 aman 72
        this.id = id;
73
        this.firstName = firstName;
74
        this.lastName = lastName;
75
        this.email = email;
76
        this.mobile = mobile;
77
        this.panDocumentId = panDocumentId;
78
        this.aadhaarDocumentId = aadhaarDocumentId;
79
        this.gstNumber = gstNumber;
80
        this.businessName = businessName;
81
        this.addressLine1 = addressLine1;
82
        this.addressLine2 = addressLine2;
83
        this.city = city;
84
        this.state = state;
85
        this.pincode = pincode;
86
        this.status = status;
87
        this.createdOn = createdOn;
88
        this.updatedOn = updatedOn;
89
    }
90
 
91
    public int getId() {
92
        return id;
93
    }
94
 
95
    public void setId(int id) {
96
        this.id = id;
97
    }
98
 
99
    public String getFirstName() {
100
        return firstName;
101
    }
102
 
103
    public void setFirstName(String firstName) {
104
        this.firstName = firstName;
105
    }
106
 
107
    public String getLastName() {
108
        return lastName;
109
    }
110
 
111
    public void setLastName(String lastName) {
112
        this.lastName = lastName;
113
    }
114
 
115
    public String getEmail() {
116
        return email;
117
    }
118
 
119
    public void setEmail(String email) {
120
        this.email = email;
121
    }
122
 
123
    public String getMobile() {
124
        return mobile;
125
    }
126
 
127
    public void setMobile(String mobile) {
128
        this.mobile = mobile;
129
    }
130
 
131
    public Integer getPanDocumentId() {
132
        return panDocumentId;
133
    }
134
 
135
    public void setPanDocumentId(Integer panDocumentId) {
136
        this.panDocumentId = panDocumentId;
137
    }
138
 
139
    public Integer getAadhaarDocumentId() {
140
        return aadhaarDocumentId;
141
    }
142
 
143
    public void setAadhaarDocumentId(Integer aadhaarDocumentId) {
144
        this.aadhaarDocumentId = aadhaarDocumentId;
145
    }
146
 
147
    public String getGstNumber() {
148
        return gstNumber;
149
    }
150
 
151
    public void setGstNumber(String gstNumber) {
152
        this.gstNumber = gstNumber;
153
    }
154
 
155
    public String getBusinessName() {
156
        return businessName;
157
    }
158
 
159
    public void setBusinessName(String businessName) {
160
        this.businessName = businessName;
161
    }
162
 
163
    public String getAddressLine1() {
164
        return addressLine1;
165
    }
166
 
167
    public void setAddressLine1(String addressLine1) {
168
        this.addressLine1 = addressLine1;
169
    }
170
 
171
    public String getAddressLine2() {
172
        return addressLine2;
173
    }
174
 
175
    public void setAddressLine2(String addressLine2) {
176
        this.addressLine2 = addressLine2;
177
    }
178
 
179
    public String getCity() {
180
        return city;
181
    }
182
 
183
    public void setCity(String city) {
184
        this.city = city;
185
    }
186
 
187
    public String getState() {
188
        return state;
189
    }
190
 
191
    public void setState(String state) {
192
        this.state = state;
193
    }
194
 
195
    public String getPincode() {
196
        return pincode;
197
    }
198
 
199
    public void setPincode(String pincode) {
200
        this.pincode = pincode;
201
    }
202
 
203
    public ProfitMandiConstants.Status getStatus() {
204
        return status;
205
    }
206
 
207
    public void setStatus(ProfitMandiConstants.Status status) {
208
        this.status = status;
209
    }
210
 
211
    public LocalDateTime getCreatedOn() {
212
        return createdOn;
213
    }
214
 
215
    public void setCreatedOn(LocalDateTime createdOn) {
216
        this.createdOn = createdOn;
217
    }
218
 
219
    public LocalDateTime getUpdatedOn() {
220
        return updatedOn;
221
    }
222
 
223
    public void setUpdatedOn(LocalDateTime updatedOn) {
224
        this.updatedOn = updatedOn;
225
    }
35289 amit 226
 
227
    @Override
228
    public String toString() {
229
        return "TrialForm{" +
230
                "id=" + id +
231
                ", firstName='" + firstName + '\'' +
232
                ", lastName='" + lastName + '\'' +
233
                ", email='" + email + '\'' +
234
                ", mobile='" + mobile + '\'' +
235
                ", panDocumentId=" + panDocumentId +
236
                ", aadhaarDocumentId=" + aadhaarDocumentId +
237
                ", gstNumber='" + gstNumber + '\'' +
238
                ", businessName='" + businessName + '\'' +
239
                ", addressLine1='" + addressLine1 + '\'' +
240
                ", addressLine2='" + addressLine2 + '\'' +
241
                ", city='" + city + '\'' +
242
                ", state='" + state + '\'' +
243
                ", pincode='" + pincode + '\'' +
244
                ", status=" + status +
245
                ", createdOn=" + createdOn +
246
                ", updatedOn=" + updatedOn +
247
                '}';
248
    }
249
 
250
    @Override
251
    public boolean equals(Object o) {
252
        if (o == null || getClass() != o.getClass()) return false;
253
        TrialForm trialForm = (TrialForm) o;
254
        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) && status == trialForm.status && Objects.equals(createdOn, trialForm.createdOn) && Objects.equals(updatedOn, trialForm.updatedOn);
255
    }
256
 
257
    @Override
258
    public int hashCode() {
259
        return Objects.hash(id, firstName, lastName, email, mobile, panDocumentId, aadhaarDocumentId, gstNumber, businessName, addressLine1, addressLine2, city, state, pincode, status, createdOn, updatedOn);
260
    }
35275 aman 261
}