Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
34678 vikas.jang 1
package com.spice.profitmandi.dao.entity.auth;
2
 
3
import javax.persistence.*;
4
import java.math.BigDecimal;
5
import java.time.LocalDate;
6
import java.time.LocalTime;
7
import java.time.LocalDateTime;
8
 
9
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
10
 
11
@Entity
12
@Table(name = "auth.location_tracking")
13
public class LocationTracking {
14
 
15
    @Id
16
    @GeneratedValue(strategy = GenerationType.IDENTITY)
17
    @Column(name = "id", unique = true, updatable = false)
18
    private int id;
19
 
20
    @Column(name = "user_id", nullable = false)
21
    private int userId;
22
 
23
    @Column(name = "device_id", nullable = false)
24
    private String deviceId;
25
 
26
    @Column(name = "lat_lng", nullable = false, length = 191)
27
    private String latLng;
28
 
29
    @Column(name = "task_date", nullable = false)
30
    private LocalDate taskDate;
31
 
32
    @Column(name = "task_name", nullable = false, length = 191)
33
    private String taskName;
34
 
35
    @Column(name = "mark_type", nullable = false, length = 20)
36
    private String markType;
37
 
38
    @Column(name = "task_type", nullable = false, length = 191)
39
    private String taskType;
40
 
41
    @Column(name = "task_time")
42
    private LocalTime taskTime;
43
 
44
    @Column(name = "task_description", columnDefinition = "TEXT")
45
    private String taskDescription;
46
 
47
    @Column(name = "address", nullable = false, length = 500)
48
    private String address;
49
 
50
    @Column(name = "attachment", length = 191)
51
    private String attachment;
52
 
53
    @Column(name = "total_distance", precision = 10, scale = 2)
54
    private BigDecimal totalDistance;
55
 
56
    @Column(name = "assigned_by", nullable = false)
57
    private int assignedBy;
58
 
59
    @Column(name = "status", nullable = false)
60
    private boolean status;
61
 
62
    @Convert(converter = LocalDateTimeAttributeConverter.class)
63
    @Column(name = "created_timestamp", nullable = false, updatable = false)
64
    private LocalDateTime createdTimestamp;
65
 
66
    @Convert(converter = LocalDateTimeAttributeConverter.class)
67
    @Column(name = "updated_timestamp")
68
    private LocalDateTime updatedTimestamp;
69
 
70
    public int getId() {
71
        return id;
72
    }
73
 
74
    public void setId(int id) {
75
        this.id = id;
76
    }
77
 
78
    public int getUserId() {
79
        return userId;
80
    }
81
 
82
    public void setUserId(int userId) {
83
        this.userId = userId;
84
    }
85
 
86
    public String getDeviceId() {
87
        return deviceId;
88
    }
89
 
90
    public void setDeviceId(String deviceId) {
91
        this.deviceId = deviceId;
92
    }
93
 
94
    public String getLatLng() {
95
        return latLng;
96
    }
97
 
98
    public void setLatLng(String latLng) {
99
        this.latLng = latLng;
100
    }
101
 
102
    public LocalDate getTaskDate() {
103
        return taskDate;
104
    }
105
 
106
    public void setTaskDate(LocalDate taskDate) {
107
        this.taskDate = taskDate;
108
    }
109
 
110
    public String getTaskName() {
111
        return taskName;
112
    }
113
 
114
    public void setTaskName(String taskName) {
115
        this.taskName = taskName;
116
    }
117
 
118
    public String getTaskType() {
119
        return taskType;
120
    }
121
 
122
    public void setTaskType(String taskType) {
123
        this.taskType = taskType;
124
    }
125
 
126
    public String getMarkType() {
127
        return markType;
128
    }
129
 
130
    public void setMarkType(String markType) {
131
        this.markType = markType;
132
    }
133
 
134
    public LocalTime getTaskTime() {
135
        return taskTime;
136
    }
137
 
138
    public void setTaskTime(LocalTime taskTime) {
139
        this.taskTime = taskTime;
140
    }
141
 
142
    public String getTaskDescription() {
143
        return taskDescription;
144
    }
145
 
146
    public void setTaskDescription(String taskDescription) {
147
        this.taskDescription = taskDescription;
148
    }
149
 
150
    public String getAddress() {
151
        return address;
152
    }
153
 
154
    public void setAddress(String address) {
155
        this.address = address;
156
    }
157
 
158
    public String getAttachment() {
159
        return attachment;
160
    }
161
 
162
    public void setAttachment(String attachment) {
163
        this.attachment = attachment;
164
    }
165
 
166
    public BigDecimal getTotalDistance() {
167
        return totalDistance;
168
    }
169
 
170
    public void setTotalDistance(BigDecimal totalDistance) {
171
        this.totalDistance = totalDistance;
172
    }
173
 
174
    public int getAssignedBy() {
175
        return assignedBy;
176
    }
177
 
178
    public void setAssignedBy(int assignedBy) {
179
        this.assignedBy = assignedBy;
180
    }
181
 
182
    public boolean getStatus() {
183
        return status;
184
    }
185
 
186
    public void setStatus(boolean status) {
187
        this.status = status;
188
    }
189
 
190
    public LocalDateTime getCreatedTimestamp() {
191
        return createdTimestamp;
192
    }
193
 
194
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
195
        this.createdTimestamp = createdTimestamp;
196
    }
197
 
198
    public LocalDateTime getUpdatedTimestamp() {
199
        return updatedTimestamp;
200
    }
201
 
202
    public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
203
        this.updatedTimestamp = updatedTimestamp;
204
    }
205
 
206
    @Override
207
    public String toString() {
208
        return "LocationTracking [id=" + id + ", userId=" + userId + ", deviceId=" + deviceId + ", latLng=" + latLng
209
                + ", taskDate=" + taskDate + ", taskName=" + taskName + ", taskType=" + taskType + ", taskTime=" + taskTime
210
                + ", taskDescription=" + taskDescription + ", address=" + address + ", attachment=" + attachment
211
                + ", totalDistance=" + totalDistance + ", assignedBy=" + assignedBy + ", status=" + status
212
                + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp + "]";
213
    }
214
}