| 25899 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.user;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.Column;
|
|
|
6 |
import javax.persistence.Entity;
|
|
|
7 |
import javax.persistence.EnumType;
|
|
|
8 |
import javax.persistence.Enumerated;
|
|
|
9 |
import javax.persistence.GeneratedValue;
|
|
|
10 |
import javax.persistence.GenerationType;
|
|
|
11 |
import javax.persistence.Id;
|
|
|
12 |
import javax.persistence.Table;
|
| 25916 |
amit.gupta |
13 |
import javax.persistence.Transient;
|
| 25899 |
tejbeer |
14 |
|
|
|
15 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
|
|
16 |
|
|
|
17 |
@Entity
|
|
|
18 |
@Table(name = "user.lead", schema = "user")
|
|
|
19 |
public class Lead {
|
|
|
20 |
@Id
|
|
|
21 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
22 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
23 |
private int id;
|
|
|
24 |
|
|
|
25 |
@Column(name = "first_name")
|
|
|
26 |
private String firstName;
|
|
|
27 |
|
| 25979 |
tejbeer |
28 |
@Column(name = "source")
|
|
|
29 |
private String source;
|
|
|
30 |
|
|
|
31 |
public String getSource() {
|
|
|
32 |
return source;
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public void setSource(String source) {
|
|
|
36 |
this.source = source;
|
|
|
37 |
}
|
|
|
38 |
|
| 25899 |
tejbeer |
39 |
public String getFirstName() {
|
|
|
40 |
return firstName;
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
public void setFirstName(String firstName) {
|
|
|
44 |
this.firstName = firstName;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
public String getLastName() {
|
|
|
48 |
return lastName;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
public void setLastName(String lastName) {
|
|
|
52 |
this.lastName = lastName;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
@Column(name = "last_name")
|
|
|
56 |
private String lastName;
|
|
|
57 |
|
|
|
58 |
@Column(length = 10, name = "mobile")
|
|
|
59 |
private String leadMobile;
|
|
|
60 |
|
|
|
61 |
@Column(name = "created_by")
|
|
|
62 |
private String createdBy;
|
|
|
63 |
|
|
|
64 |
@Column(name = "auth_id")
|
|
|
65 |
private int authId;
|
|
|
66 |
|
|
|
67 |
public int getAuthId() {
|
|
|
68 |
return authId;
|
|
|
69 |
}
|
|
|
70 |
|
| 25916 |
amit.gupta |
71 |
@Transient
|
|
|
72 |
private LeadActivity leadActivity;
|
|
|
73 |
|
|
|
74 |
public LeadActivity getLeadActivity() {
|
|
|
75 |
return leadActivity;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public void setLeadActivity(LeadActivity leadActivity) {
|
|
|
79 |
this.leadActivity = leadActivity;
|
|
|
80 |
}
|
|
|
81 |
|
| 25899 |
tejbeer |
82 |
public void setAuthId(int authId) {
|
|
|
83 |
this.authId = authId;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
@Column(name = "address")
|
|
|
87 |
private String address;
|
|
|
88 |
|
|
|
89 |
@Column(name = "city")
|
|
|
90 |
private String city;
|
|
|
91 |
|
|
|
92 |
@Column(name = "state")
|
|
|
93 |
private String state;
|
|
|
94 |
|
|
|
95 |
@Column(name = "status")
|
|
|
96 |
@Enumerated(EnumType.STRING)
|
|
|
97 |
private LeadStatus status;
|
|
|
98 |
|
| 25979 |
tejbeer |
99 |
@Column(name = "assign_to")
|
|
|
100 |
private int assignTo;
|
|
|
101 |
|
| 25899 |
tejbeer |
102 |
@Column(name = "created_timestamp")
|
|
|
103 |
private LocalDateTime createdTimestamp;
|
|
|
104 |
|
|
|
105 |
@Column(name = "updated_timestamp")
|
|
|
106 |
private LocalDateTime updatedTimestamp;
|
|
|
107 |
|
| 25979 |
tejbeer |
108 |
public int getAssignTo() {
|
|
|
109 |
return assignTo;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public void setAssignTo(int assignTo) {
|
|
|
113 |
this.assignTo = assignTo;
|
|
|
114 |
}
|
|
|
115 |
|
| 25899 |
tejbeer |
116 |
public int getId() {
|
|
|
117 |
return id;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
public void setId(int id) {
|
|
|
121 |
this.id = id;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public String getLeadMobile() {
|
|
|
125 |
return leadMobile;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public void setLeadMobile(String leadMobile) {
|
|
|
129 |
this.leadMobile = leadMobile;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
public String getCreatedBy() {
|
|
|
133 |
return createdBy;
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
public void setCreatedBy(String createdBy) {
|
|
|
137 |
this.createdBy = createdBy;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
public String getAddress() {
|
|
|
141 |
return address;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
public void setAddress(String address) {
|
|
|
145 |
this.address = address;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
public String getCity() {
|
|
|
149 |
return city;
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
public void setCity(String city) {
|
|
|
153 |
this.city = city;
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
public String getState() {
|
|
|
157 |
return state;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public void setState(String state) {
|
|
|
161 |
this.state = state;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public LeadStatus getStatus() {
|
|
|
165 |
return status;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
public void setStatus(LeadStatus status) {
|
|
|
169 |
this.status = status;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
public LocalDateTime getCreatedTimestamp() {
|
|
|
173 |
return createdTimestamp;
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
|
|
|
177 |
this.createdTimestamp = createdTimestamp;
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
public LocalDateTime getUpdatedTimestamp() {
|
|
|
181 |
return updatedTimestamp;
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
|
|
|
185 |
this.updatedTimestamp = updatedTimestamp;
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
@Override
|
|
|
189 |
public String toString() {
|
| 25979 |
tejbeer |
190 |
return "Lead [id=" + id + ", firstName=" + firstName + ", source=" + source + ", lastName=" + lastName
|
|
|
191 |
+ ", leadMobile=" + leadMobile + ", createdBy=" + createdBy + ", authId=" + authId + ", leadActivity="
|
|
|
192 |
+ leadActivity + ", address=" + address + ", city=" + city + ", state=" + state + ", status=" + status
|
|
|
193 |
+ ", assignTo=" + assignTo + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp="
|
|
|
194 |
+ updatedTimestamp + ", getSource()=" + getSource() + ", getFirstName()=" + getFirstName()
|
|
|
195 |
+ ", getLastName()=" + getLastName() + ", getAuthId()=" + getAuthId() + ", getLeadActivity()="
|
|
|
196 |
+ getLeadActivity() + ", getAssignTo()=" + getAssignTo() + ", getId()=" + getId() + ", getLeadMobile()="
|
|
|
197 |
+ getLeadMobile() + ", getCreatedBy()=" + getCreatedBy() + ", getAddress()=" + getAddress()
|
|
|
198 |
+ ", getCity()=" + getCity() + ", getState()=" + getState() + ", getStatus()=" + getStatus()
|
|
|
199 |
+ ", getCreatedTimestamp()=" + getCreatedTimestamp() + ", getUpdatedTimestamp()="
|
|
|
200 |
+ getUpdatedTimestamp() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()="
|
|
|
201 |
+ super.toString() + "]";
|
| 25899 |
tejbeer |
202 |
}
|
|
|
203 |
|
|
|
204 |
}
|