Subversion Repositories SmartDukaan

Rev

Rev 36644 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
36644 ranu 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import javax.persistence.*;
4
 
5
@Entity
6
@Table(name = "user.beat_route")
7
public class BeatRoute {
8
 
9
    @Id
10
    @Column(name = "id", unique = true, updatable = false)
11
    @GeneratedValue(strategy = GenerationType.IDENTITY)
12
    private int id;
13
 
14
    @Column(name = "beat_id")
15
    private int beatId;
16
 
17
    @Column(name = "fofo_id")
18
    private int fofoId;
19
 
20
    @Column(name = "sequence_order")
21
    private int sequenceOrder;
22
 
23
    @Column(name = "day_number")
24
    private int dayNumber;
25
 
26
    @Column(name = "active")
27
    private boolean active;
28
 
36711 ranu 29
    // Distance/time from the PREVIOUS stop on this day's route.
30
    // For the first stop of a day this is from the day's start (home/stay).
31
    // Nullable so legacy rows created before this column existed stay valid.
32
    @Column(name = "distance_from_prev_km")
33
    private Double distanceFromPrevKm;
34
 
35
    @Column(name = "time_from_prev_mins")
36
    private Integer timeFromPrevMins;
37
 
36644 ranu 38
    public int getId() {
39
        return id;
40
    }
41
 
42
    public void setId(int id) {
43
        this.id = id;
44
    }
45
 
46
    public int getBeatId() {
47
        return beatId;
48
    }
49
 
50
    public void setBeatId(int beatId) {
51
        this.beatId = beatId;
52
    }
53
 
54
    public int getFofoId() {
55
        return fofoId;
56
    }
57
 
58
    public void setFofoId(int fofoId) {
59
        this.fofoId = fofoId;
60
    }
61
 
62
    public int getSequenceOrder() {
63
        return sequenceOrder;
64
    }
65
 
66
    public void setSequenceOrder(int sequenceOrder) {
67
        this.sequenceOrder = sequenceOrder;
68
    }
69
 
70
    public int getDayNumber() {
71
        return dayNumber;
72
    }
73
 
74
    public void setDayNumber(int dayNumber) {
75
        this.dayNumber = dayNumber;
76
    }
77
 
78
    public boolean isActive() {
79
        return active;
80
    }
81
 
82
    public void setActive(boolean active) {
83
        this.active = active;
84
    }
36711 ranu 85
 
86
    public Double getDistanceFromPrevKm() {
87
        return distanceFromPrevKm;
88
    }
89
 
90
    public void setDistanceFromPrevKm(Double distanceFromPrevKm) {
91
        this.distanceFromPrevKm = distanceFromPrevKm;
92
    }
93
 
94
    public Integer getTimeFromPrevMins() {
95
        return timeFromPrevMins;
96
    }
97
 
98
    public void setTimeFromPrevMins(Integer timeFromPrevMins) {
99
        this.timeFromPrevMins = timeFromPrevMins;
100
    }
36644 ranu 101
}