Subversion Repositories SmartDukaan

Rev

Rev 34694 | Rev 34761 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34694 Rev 34723
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.auth;
1
package com.spice.profitmandi.dao.entity.auth;
2
 
2
 
3
import javax.persistence.*;
3
import javax.persistence.*;
4
import java.math.BigDecimal;
-
 
5
import java.time.LocalDate;
4
import java.time.LocalDate;
6
import java.time.LocalTime;
5
import java.time.LocalTime;
7
import java.time.LocalDateTime;
6
import java.time.LocalDateTime;
8
 
7
 
9
import com.spice.profitmandi.common.model.ProfitMandiConstants;
-
 
10
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
8
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
11
 
9
 
12
@Entity
10
@Entity
13
@Table(name = "auth.location_tracking")
11
@Table(name = "auth.location_tracking")
14
public class LocationTracking {
12
public class LocationTracking {
15
 
13
 
16
    @Id
14
    @Id
-
 
15
    @Column(name = "id", columnDefinition = "int(11)")
17
    @GeneratedValue(strategy = GenerationType.IDENTITY)
16
    @GeneratedValue(strategy = GenerationType.IDENTITY)
18
    @Column(name = "id", unique = true, updatable = false)
-
 
19
    private int id;
17
    private int id;
20
 
18
 
21
    @Column(name = "user_id", nullable = false)
19
    @Column(name = "user_id", nullable = false)
22
    private int userId;
20
    private int userId;
23
 
21
 
24
    @Column(name = "device_id", nullable = false)
22
    @Column(name = "device_id", nullable = false)
25
    private String deviceId;
23
    private String deviceId;
26
 
24
 
-
 
25
    @Column(name = "task_id", nullable = false)
-
 
26
    private int taskId;
-
 
27
 
27
    @Column(name = "lat_lng", nullable = false, length = 191)
28
    @Column(name = "lat_lng", nullable = false, length = 191)
28
    private String latLng;
29
    private String latLng;
29
 
30
 
30
    @Column(name = "task_date", nullable = false)
31
    @Column(name = "task_date", nullable = false)
31
    private LocalDate taskDate;
32
    private LocalDate taskDate;
32
 
33
 
33
    @Column(name = "task_name", nullable = false, length = 191)
34
    @Column(name = "task_name", nullable = false, length = 191)
34
    private String taskName;
35
    private String taskName;
35
 
36
 
36
    @Column(name = "mark_type", nullable = false, length = 191)
37
    @Column(name = "mark_type", nullable = false, length = 191)
37
    private ProfitMandiConstants.MARK_TYPE markType;
38
    private String markType;
38
 
39
 
39
    @Column(name = "check_in_time", nullable = true, length = 20)
40
    @Column(name = "check_in_time", nullable = true, length = 20)
40
    private LocalTime checkInTime;
41
    private LocalTime checkInTime;
41
 
42
 
42
    @Column(name = "check_out_time", nullable = true, length = 20)
43
    @Column(name = "check_out_time", nullable = true, length = 20)
Line 65... Line 66...
65
 
66
 
66
    @Column(name = "total_distance", precision = 10, scale = 2)
67
    @Column(name = "total_distance", precision = 10, scale = 2)
67
    private double totalDistance;
68
    private double totalDistance;
68
 
69
 
69
    @Column(name = "estimated_time", precision = 10, scale = 2)
70
    @Column(name = "estimated_time", precision = 10, scale = 2)
70
    private double estimatedTime;
71
    private LocalTime estimatedTime;
71
 
72
 
72
    @Column(name = "assigned_by", nullable = false)
73
    @Column(name = "assigned_by", nullable = false)
73
    private int assignedBy;
74
    private int assignedBy;
74
 
75
 
75
    @Column(name = "status", nullable = false)
76
    @Column(name = "status", nullable = false)
Line 105... Line 106...
105
 
106
 
106
    public void setDeviceId(String deviceId) {
107
    public void setDeviceId(String deviceId) {
107
        this.deviceId = deviceId;
108
        this.deviceId = deviceId;
108
    }
109
    }
109
 
110
 
-
 
111
    public int getTaskId() {
-
 
112
        return taskId;
-
 
113
    }
-
 
114
 
-
 
115
    public void setTaskId(int taskId) {
-
 
116
        this.taskId = taskId;
-
 
117
    }
-
 
118
 
110
    public String getLatLng() {
119
    public String getLatLng() {
111
        return latLng;
120
        return latLng;
112
    }
121
    }
113
 
122
 
114
    public void setLatLng(String latLng) {
123
    public void setLatLng(String latLng) {
Line 213... Line 222...
213
 
222
 
214
    public void setTotalDistance(double totalDistance) {
223
    public void setTotalDistance(double totalDistance) {
215
        this.totalDistance = totalDistance;
224
        this.totalDistance = totalDistance;
216
    }
225
    }
217
 
226
 
218
    public ProfitMandiConstants.MARK_TYPE getMarkType() {
227
    public String getMarkType() {
219
        return markType;
228
        return markType;
220
    }
229
    }
221
 
230
 
222
    public void setMarkType(ProfitMandiConstants.MARK_TYPE markType) {
231
    public void setMarkType(String markType) {
223
        this.markType = markType;
232
        this.markType = markType;
224
    }
233
    }
225
 
234
 
226
    public double getEstimatedTime() {
235
    public LocalTime getEstimatedTime() {
227
        return estimatedTime;
236
        return estimatedTime;
228
    }
237
    }
229
 
238
 
230
    public void setEstimatedTime(double estimatedTime) {
239
    public void setEstimatedTime(LocalTime estimatedTime) {
231
        this.estimatedTime = estimatedTime;
240
        this.estimatedTime = estimatedTime;
232
    }
241
    }
233
 
242
 
234
    public int getAssignedBy() {
243
    public int getAssignedBy() {
235
        return assignedBy;
244
        return assignedBy;