Subversion Repositories SmartDukaan

Rev

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

Rev 35117 Rev 36645
Line 6... Line 6...
6
import java.time.LocalDateTime;
6
import java.time.LocalDateTime;
7
import java.util.ArrayList;
7
import java.util.ArrayList;
8
import java.util.List;
8
import java.util.List;
9
 
9
 
10
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
10
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
-
 
11
import com.spice.profitmandi.dao.entity.user.Lead;
-
 
12
import com.spice.profitmandi.dao.entity.user.FranchiseeVisit;
11
 
13
 
12
@Entity
14
@Entity
13
@Table(name = "auth.location_tracking")
15
@Table(name = "auth.location_tracking")
14
public class LocationTracking {
16
public class LocationTracking {
15
 
17
 
Line 79... Line 81...
79
    private LocalTime estimatedTime;
81
    private LocalTime estimatedTime;
80
 
82
 
81
    @Column(name = "assigned_by", nullable = false)
83
    @Column(name = "assigned_by", nullable = false)
82
    private int assignedBy;
84
    private int assignedBy;
83
 
85
 
-
 
86
    @Column(name = "battery_level")
-
 
87
    private Integer batteryLevel;
-
 
88
 
-
 
89
    @Column(name = "location_toggle_count")
-
 
90
    private Integer locationToggleCount;
-
 
91
 
-
 
92
    @Column(name = "visit_location", length = 500)
-
 
93
    private String visitLocation;
-
 
94
 
84
    @Column(name = "status", nullable = false)
95
    @Column(name = "status", nullable = false)
85
    private boolean status;
96
    private boolean status;
86
 
97
 
-
 
98
    @Transient
-
 
99
    private Lead lead;
-
 
100
 
-
 
101
    @Transient
-
 
102
    private FranchiseeVisit franchiseeVisit;
-
 
103
 
87
    @Convert(converter = LocalDateTimeAttributeConverter.class)
104
    @Convert(converter = LocalDateTimeAttributeConverter.class)
88
    @Column(name = "created_timestamp", nullable = false, updatable = false)
105
    @Column(name = "created_timestamp", nullable = false, updatable = false)
89
    private LocalDateTime createdTimestamp;
106
    private LocalDateTime createdTimestamp;
90
 
107
 
91
    @Convert(converter = LocalDateTimeAttributeConverter.class)
108
    @Convert(converter = LocalDateTimeAttributeConverter.class)
Line 258... Line 275...
258
 
275
 
259
    public void setEstimatedTime(LocalTime estimatedTime) {
276
    public void setEstimatedTime(LocalTime estimatedTime) {
260
        this.estimatedTime = estimatedTime;
277
        this.estimatedTime = estimatedTime;
261
    }
278
    }
262
 
279
 
-
 
280
    public Integer getBatteryLevel() {
-
 
281
        return batteryLevel;
-
 
282
    }
-
 
283
 
-
 
284
    public void setBatteryLevel(Integer batteryLevel) {
-
 
285
        this.batteryLevel = batteryLevel;
-
 
286
    }
-
 
287
 
-
 
288
    public Integer getLocationToggleCount() {
-
 
289
        return locationToggleCount;
-
 
290
    }
-
 
291
 
-
 
292
    public void setLocationToggleCount(Integer locationToggleCount) {
-
 
293
        this.locationToggleCount = locationToggleCount;
-
 
294
    }
-
 
295
 
-
 
296
    public String getVisitLocation() {
-
 
297
        return visitLocation;
-
 
298
    }
-
 
299
 
-
 
300
    public void setVisitLocation(String visitLocation) {
-
 
301
        this.visitLocation = visitLocation;
-
 
302
    }
-
 
303
 
263
    public int getAssignedBy() {
304
    public int getAssignedBy() {
264
        return assignedBy;
305
        return assignedBy;
265
    }
306
    }
266
 
307
 
267
    public void setAssignedBy(int assignedBy) {
308
    public void setAssignedBy(int assignedBy) {
Line 290... Line 331...
290
 
331
 
291
    public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
332
    public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
292
        this.updatedTimestamp = updatedTimestamp;
333
        this.updatedTimestamp = updatedTimestamp;
293
    }
334
    }
294
 
335
 
-
 
336
    public Lead getLead() {
-
 
337
        return lead;
-
 
338
    }
-
 
339
 
-
 
340
    public void setLead(Lead lead) {
-
 
341
        this.lead = lead;
-
 
342
    }
-
 
343
 
-
 
344
    public FranchiseeVisit getFranchiseeVisit() {
-
 
345
        return franchiseeVisit;
-
 
346
    }
-
 
347
 
-
 
348
    public void setFranchiseeVisit(FranchiseeVisit franchiseeVisit) {
-
 
349
        this.franchiseeVisit = franchiseeVisit;
-
 
350
    }
-
 
351
 
295
    @Override
352
    @Override
296
    public String toString() {
353
    public String toString() {
297
        return "LocationTracking{" +
354
        return "LocationTracking{" +
298
                "id=" + id +
355
                "id=" + id +
299
                ", userId=" + userId +
356
                ", userId=" + userId +