Subversion Repositories SmartDukaan

Rev

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

Rev 34678 Rev 34692
Line 4... Line 4...
4
import java.math.BigDecimal;
4
import java.math.BigDecimal;
5
import java.time.LocalDate;
5
import java.time.LocalDate;
6
import java.time.LocalTime;
6
import java.time.LocalTime;
7
import java.time.LocalDateTime;
7
import java.time.LocalDateTime;
8
 
8
 
-
 
9
import com.spice.profitmandi.common.model.ProfitMandiConstants;
9
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
10
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
10
 
11
 
11
@Entity
12
@Entity
12
@Table(name = "auth.location_tracking")
13
@Table(name = "auth.location_tracking")
13
public class LocationTracking {
14
public class LocationTracking {
Line 30... Line 31...
30
    private LocalDate taskDate;
31
    private LocalDate taskDate;
31
 
32
 
32
    @Column(name = "task_name", nullable = false, length = 191)
33
    @Column(name = "task_name", nullable = false, length = 191)
33
    private String taskName;
34
    private String taskName;
34
 
35
 
35
    @Column(name = "mark_type", nullable = false, length = 20)
36
    @Column(name = "mark_type", nullable = false, length = 191)
-
 
37
    private ProfitMandiConstants.MARK_TYPE markType;
-
 
38
 
-
 
39
    @Column(name = "check_in_time", nullable = true, length = 20)
-
 
40
    private LocalTime checkInTime;
-
 
41
 
-
 
42
    @Column(name = "check_out_time", nullable = true, length = 20)
-
 
43
    private LocalTime checkOutTime;
-
 
44
 
-
 
45
    @Column(name = "transit_time", nullable = true, length = 20)
36
    private String markType;
46
    private LocalTime transitTime;
-
 
47
 
-
 
48
    @Column(name = "time_spent", nullable = true, length = 20)
-
 
49
    private LocalTime timeSpent;
37
 
50
 
38
    @Column(name = "task_type", nullable = false, length = 191)
51
    @Column(name = "task_type", nullable = false, length = 191)
39
    private String taskType;
52
    private String taskType;
40
 
53
 
41
    @Column(name = "task_time")
54
    @Column(name = "task_time")
Line 49... Line 62...
49
 
62
 
50
    @Column(name = "attachment", length = 191)
63
    @Column(name = "attachment", length = 191)
51
    private String attachment;
64
    private String attachment;
52
 
65
 
53
    @Column(name = "total_distance", precision = 10, scale = 2)
66
    @Column(name = "total_distance", precision = 10, scale = 2)
54
    private BigDecimal totalDistance;
67
    private double totalDistance;
55
 
68
 
56
    @Column(name = "assigned_by", nullable = false)
69
    @Column(name = "assigned_by", nullable = false)
57
    private int assignedBy;
70
    private int assignedBy;
58
 
71
 
59
    @Column(name = "status", nullable = false)
72
    @Column(name = "status", nullable = false)
Line 121... Line 134...
121
 
134
 
122
    public void setTaskType(String taskType) {
135
    public void setTaskType(String taskType) {
123
        this.taskType = taskType;
136
        this.taskType = taskType;
124
    }
137
    }
125
 
138
 
126
    public String getMarkType() {
139
    public LocalTime getCheckInTime() {
127
        return markType;
140
        return checkInTime;
-
 
141
    }
-
 
142
 
-
 
143
    public void setCheckInTime(LocalTime checkInTime) {
-
 
144
        this.checkInTime = checkInTime;
-
 
145
    }
-
 
146
 
-
 
147
    public LocalTime getCheckOutTime() {
-
 
148
        return checkOutTime;
-
 
149
    }
-
 
150
 
-
 
151
    public void setCheckOutTime(LocalTime checkOutTime) {
-
 
152
        this.checkOutTime = checkOutTime;
128
    }
153
    }
129
 
154
 
-
 
155
    public LocalTime getTransitTime() {
-
 
156
        return transitTime;
-
 
157
    }
-
 
158
 
130
    public void setMarkType(String markType) {
159
    public void setTransitTime(LocalTime transitTime) {
131
        this.markType = markType;
160
        this.transitTime = transitTime;
-
 
161
    }
-
 
162
 
-
 
163
    public LocalTime getTimeSpent() {
-
 
164
        return timeSpent;
-
 
165
    }
-
 
166
 
-
 
167
    public void setTimeSpent(LocalTime timeSpent) {
-
 
168
        this.timeSpent = timeSpent;
-
 
169
    }
-
 
170
 
-
 
171
    public boolean isStatus() {
-
 
172
        return status;
132
    }
173
    }
133
 
174
 
134
    public LocalTime getTaskTime() {
175
    public LocalTime getTaskTime() {
135
        return taskTime;
176
        return taskTime;
136
    }
177
    }
Line 161... Line 202...
161
 
202
 
162
    public void setAttachment(String attachment) {
203
    public void setAttachment(String attachment) {
163
        this.attachment = attachment;
204
        this.attachment = attachment;
164
    }
205
    }
165
 
206
 
166
    public BigDecimal getTotalDistance() {
207
    public double getTotalDistance() {
167
        return totalDistance;
208
        return totalDistance;
168
    }
209
    }
169
 
210
 
170
    public void setTotalDistance(BigDecimal totalDistance) {
211
    public void setTotalDistance(double totalDistance) {
171
        this.totalDistance = totalDistance;
212
        this.totalDistance = totalDistance;
172
    }
213
    }
173
 
214
 
174
    public int getAssignedBy() {
215
    public int getAssignedBy() {
175
        return assignedBy;
216
        return assignedBy;
Line 203... Line 244...
203
        this.updatedTimestamp = updatedTimestamp;
244
        this.updatedTimestamp = updatedTimestamp;
204
    }
245
    }
205
 
246
 
206
    @Override
247
    @Override
207
    public String toString() {
248
    public String toString() {
-
 
249
        return "LocationTracking{" +
-
 
250
                "id=" + id +
-
 
251
                ", userId=" + userId +
208
        return "LocationTracking [id=" + id + ", userId=" + userId + ", deviceId=" + deviceId + ", latLng=" + latLng
252
                ", deviceId='" + deviceId + '\'' +
-
 
253
                ", latLng='" + latLng + '\'' +
-
 
254
                ", taskDate=" + taskDate +
-
 
255
                ", taskName='" + taskName + '\'' +
-
 
256
                ", checkInTime='" + checkInTime + '\'' +
-
 
257
                ", checkOutTime='" + checkOutTime + '\'' +
-
 
258
                ", transitTime='" + transitTime + '\'' +
-
 
259
                ", timeSpent='" + timeSpent + '\'' +
209
                + ", taskDate=" + taskDate + ", taskName=" + taskName + ", taskType=" + taskType + ", taskTime=" + taskTime
260
                ", taskType='" + taskType + '\'' +
-
 
261
                ", taskTime=" + taskTime +
210
                + ", taskDescription=" + taskDescription + ", address=" + address + ", attachment=" + attachment
262
                ", taskDescription='" + taskDescription + '\'' +
-
 
263
                ", address='" + address + '\'' +
-
 
264
                ", attachment='" + attachment + '\'' +
211
                + ", totalDistance=" + totalDistance + ", assignedBy=" + assignedBy + ", status=" + status
265
                ", totalDistance=" + totalDistance +
-
 
266
                ", assignedBy=" + assignedBy +
-
 
267
                ", status=" + status +
-
 
268
                ", createdTimestamp=" + createdTimestamp +
212
                + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp + "]";
269
                ", updatedTimestamp=" + updatedTimestamp +
-
 
270
                '}';
213
    }
271
    }
214
}
272
}