Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35275 aman 1
package com.spice.profitmandi.dao.entity.trialUser;
2
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "fofo.trial_form")
10
public class TrialOnBoarding {
11
 
12
    @Id
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    @Column(name = "id")
15
    private int id;
16
 
17
    @Column(name = "first_name", nullable = false, length = 50)
18
    private String firstName;
19
 
20
    @Column(name = "last_name", length = 50)
21
    private String lastName;
22
 
23
    @Column(name = "email", nullable = false, length = 100)
24
    private String email;
25
 
26
    @Column(name = "mobile", nullable = false, length = 10)
27
    private String mobile;
28
 
29
    @Column(name = "pan_document_id", nullable = false)
30
    private Integer panDocumentId;
31
 
32
    @Column(name = "aadhaar_document_id", nullable = false)
33
    private Integer aadhaarDocumentId;
34
 
35
    @Column(name = "gst_number", nullable = false, length = 15)
36
    private String gstNumber;
37
 
38
    @Column(name = "business_name", nullable = false, length = 200)
39
    private String businessName;
40
 
41
    @Column(name = "address_line1", nullable = false, length = 255)
42
    private String addressLine1;
43
 
44
    @Column(name = "address_line2", length = 255)
45
    private String addressLine2;
46
 
47
    @Column(name = "city", nullable = false, length = 100)
48
    private String city;
49
 
50
    @Column(name = "state", nullable = false, length = 100)
51
    private String state;
52
 
53
    @Column(name = "pincode", nullable = false, length = 6)
54
    private String pincode;
55
 
56
    // Trial Information
57
    @Column(name = "trial_start_date")
58
    private LocalDateTime trialStartDate;
59
 
60
    @Column(name = "trial_end_date")
61
    private LocalDateTime trialEndDate;
62
 
63
    @Column(name = "status", length = 20)
64
    private ProfitMandiConstants.Status status; // ACTIVE, EXPIRED, CONVERTED
65
 
66
    @Column(name = "created_on")
67
    private LocalDateTime createdOn;
68
 
69
    @Column(name = "updated_on")
70
    private LocalDateTime updatedOn;
71
 
72
    public TrialOnBoarding() {
73
    }
74
 
75
    public TrialOnBoarding(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) {
76
        this.id = id;
77
        this.firstName = firstName;
78
        this.lastName = lastName;
79
        this.email = email;
80
        this.mobile = mobile;
81
        this.panDocumentId = panDocumentId;
82
        this.aadhaarDocumentId = aadhaarDocumentId;
83
        this.gstNumber = gstNumber;
84
        this.businessName = businessName;
85
        this.addressLine1 = addressLine1;
86
        this.addressLine2 = addressLine2;
87
        this.city = city;
88
        this.state = state;
89
        this.pincode = pincode;
90
        this.trialStartDate = trialStartDate;
91
        this.trialEndDate = trialEndDate;
92
        this.status = status;
93
        this.createdOn = createdOn;
94
        this.updatedOn = updatedOn;
95
    }
96
 
97
    public int getId() {
98
        return id;
99
    }
100
 
101
    public void setId(int id) {
102
        this.id = id;
103
    }
104
 
105
    public String getFirstName() {
106
        return firstName;
107
    }
108
 
109
    public void setFirstName(String firstName) {
110
        this.firstName = firstName;
111
    }
112
 
113
    public String getLastName() {
114
        return lastName;
115
    }
116
 
117
    public void setLastName(String lastName) {
118
        this.lastName = lastName;
119
    }
120
 
121
    public String getEmail() {
122
        return email;
123
    }
124
 
125
    public void setEmail(String email) {
126
        this.email = email;
127
    }
128
 
129
    public String getMobile() {
130
        return mobile;
131
    }
132
 
133
    public void setMobile(String mobile) {
134
        this.mobile = mobile;
135
    }
136
 
137
    public Integer getPanDocumentId() {
138
        return panDocumentId;
139
    }
140
 
141
    public void setPanDocumentId(Integer panDocumentId) {
142
        this.panDocumentId = panDocumentId;
143
    }
144
 
145
    public Integer getAadhaarDocumentId() {
146
        return aadhaarDocumentId;
147
    }
148
 
149
    public void setAadhaarDocumentId(Integer aadhaarDocumentId) {
150
        this.aadhaarDocumentId = aadhaarDocumentId;
151
    }
152
 
153
    public String getGstNumber() {
154
        return gstNumber;
155
    }
156
 
157
    public void setGstNumber(String gstNumber) {
158
        this.gstNumber = gstNumber;
159
    }
160
 
161
    public String getBusinessName() {
162
        return businessName;
163
    }
164
 
165
    public void setBusinessName(String businessName) {
166
        this.businessName = businessName;
167
    }
168
 
169
    public String getAddressLine1() {
170
        return addressLine1;
171
    }
172
 
173
    public void setAddressLine1(String addressLine1) {
174
        this.addressLine1 = addressLine1;
175
    }
176
 
177
    public String getAddressLine2() {
178
        return addressLine2;
179
    }
180
 
181
    public void setAddressLine2(String addressLine2) {
182
        this.addressLine2 = addressLine2;
183
    }
184
 
185
    public String getCity() {
186
        return city;
187
    }
188
 
189
    public void setCity(String city) {
190
        this.city = city;
191
    }
192
 
193
    public String getState() {
194
        return state;
195
    }
196
 
197
    public void setState(String state) {
198
        this.state = state;
199
    }
200
 
201
    public String getPincode() {
202
        return pincode;
203
    }
204
 
205
    public void setPincode(String pincode) {
206
        this.pincode = pincode;
207
    }
208
 
209
    public LocalDateTime getTrialStartDate() {
210
        return trialStartDate;
211
    }
212
 
213
    public void setTrialStartDate(LocalDateTime trialStartDate) {
214
        this.trialStartDate = trialStartDate;
215
    }
216
 
217
    public LocalDateTime getTrialEndDate() {
218
        return trialEndDate;
219
    }
220
 
221
    public void setTrialEndDate(LocalDateTime trialEndDate) {
222
        this.trialEndDate = trialEndDate;
223
    }
224
 
225
    public ProfitMandiConstants.Status getStatus() {
226
        return status;
227
    }
228
 
229
    public void setStatus(ProfitMandiConstants.Status status) {
230
        this.status = status;
231
    }
232
 
233
    public LocalDateTime getCreatedOn() {
234
        return createdOn;
235
    }
236
 
237
    public void setCreatedOn(LocalDateTime createdOn) {
238
        this.createdOn = createdOn;
239
    }
240
 
241
    public LocalDateTime getUpdatedOn() {
242
        return updatedOn;
243
    }
244
 
245
    public void setUpdatedOn(LocalDateTime updatedOn) {
246
        this.updatedOn = updatedOn;
247
    }
248
}