| 36642 |
ranu |
1 |
package com.spice.profitmandi.dao.entity.user;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.enumuration.dtr.GeoLocationStatus;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.*;
|
|
|
6 |
import java.time.LocalDateTime;
|
|
|
7 |
|
|
|
8 |
@Entity
|
|
|
9 |
@Table(name = "user.lead_live_location")
|
|
|
10 |
public class LeadLiveLocation {
|
|
|
11 |
|
|
|
12 |
@Id
|
|
|
13 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
14 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
15 |
private int id;
|
|
|
16 |
|
|
|
17 |
@Column(name = "lead_id")
|
|
|
18 |
private int leadId;
|
|
|
19 |
|
|
|
20 |
@Column(name = "latitude")
|
|
|
21 |
private double latitude;
|
|
|
22 |
|
|
|
23 |
@Column(name = "longitude")
|
|
|
24 |
private double longitude;
|
|
|
25 |
|
|
|
26 |
@Column(name = "image_document_id")
|
|
|
27 |
private int imageDocumentId;
|
|
|
28 |
|
|
|
29 |
@Column(name = "mobile_number")
|
|
|
30 |
private String mobileNumber;
|
|
|
31 |
|
|
|
32 |
@Column(name = "status")
|
|
|
33 |
@Enumerated(EnumType.STRING)
|
|
|
34 |
private GeoLocationStatus status;
|
|
|
35 |
|
|
|
36 |
@Column(name = "reviewed_by")
|
|
|
37 |
private int reviewedBy;
|
|
|
38 |
|
|
|
39 |
@Column(name = "reviewed_timestamp")
|
|
|
40 |
private LocalDateTime reviewedTimestamp;
|
|
|
41 |
|
|
|
42 |
@Column(name = "submission_count")
|
|
|
43 |
private int submissionCount;
|
|
|
44 |
|
|
|
45 |
@Column(name = "remark")
|
|
|
46 |
private String remark;
|
|
|
47 |
|
|
|
48 |
@Column(name = "created_timestamp")
|
|
|
49 |
private LocalDateTime createdTimestamp;
|
|
|
50 |
|
|
|
51 |
@Column(name = "updated_timestamp")
|
|
|
52 |
private LocalDateTime updatedTimestamp;
|
|
|
53 |
|
|
|
54 |
public int getId() {
|
|
|
55 |
return id;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public void setId(int id) {
|
|
|
59 |
this.id = id;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public int getLeadId() {
|
|
|
63 |
return leadId;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public void setLeadId(int leadId) {
|
|
|
67 |
this.leadId = leadId;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public double getLatitude() {
|
|
|
71 |
return latitude;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setLatitude(double latitude) {
|
|
|
75 |
this.latitude = latitude;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public double getLongitude() {
|
|
|
79 |
return longitude;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setLongitude(double longitude) {
|
|
|
83 |
this.longitude = longitude;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public int getImageDocumentId() {
|
|
|
87 |
return imageDocumentId;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setImageDocumentId(int imageDocumentId) {
|
|
|
91 |
this.imageDocumentId = imageDocumentId;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public String getMobileNumber() {
|
|
|
95 |
return mobileNumber;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setMobileNumber(String mobileNumber) {
|
|
|
99 |
this.mobileNumber = mobileNumber;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
public GeoLocationStatus getStatus() {
|
|
|
103 |
return status;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setStatus(GeoLocationStatus status) {
|
|
|
107 |
this.status = status;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
public int getReviewedBy() {
|
|
|
111 |
return reviewedBy;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public void setReviewedBy(int reviewedBy) {
|
|
|
115 |
this.reviewedBy = reviewedBy;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public LocalDateTime getReviewedTimestamp() {
|
|
|
119 |
return reviewedTimestamp;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public void setReviewedTimestamp(LocalDateTime reviewedTimestamp) {
|
|
|
123 |
this.reviewedTimestamp = reviewedTimestamp;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public int getSubmissionCount() {
|
|
|
127 |
return submissionCount;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public void setSubmissionCount(int submissionCount) {
|
|
|
131 |
this.submissionCount = submissionCount;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public String getRemark() {
|
|
|
135 |
return remark;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public void setRemark(String remark) {
|
|
|
139 |
this.remark = remark;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public LocalDateTime getCreatedTimestamp() {
|
|
|
143 |
return createdTimestamp;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
|
|
|
147 |
this.createdTimestamp = createdTimestamp;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public LocalDateTime getUpdatedTimestamp() {
|
|
|
151 |
return updatedTimestamp;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
|
|
|
155 |
this.updatedTimestamp = updatedTimestamp;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
@Override
|
|
|
159 |
public String toString() {
|
|
|
160 |
return "LeadLiveLocation [id=" + id + ", leadId=" + leadId + ", latitude=" + latitude
|
|
|
161 |
+ ", longitude=" + longitude + ", status=" + status + ", submissionCount=" + submissionCount
|
|
|
162 |
+ ", createdTimestamp=" + createdTimestamp + "]";
|
|
|
163 |
}
|
|
|
164 |
}
|