Subversion Repositories SmartDukaan

Rev

Rev 36808 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
36599 vikas 1
package com.spice.profitmandi.dao.entity.logistics;
2
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
4
 
36808 ranu 5
import javax.persistence.*;
36599 vikas 6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "logistics.company_office")
10
public class CompanyOffice {
11
 
12
    @Id
13
    @Column
14
    @GeneratedValue(strategy = GenerationType.IDENTITY)
15
    private int id;
16
 
17
    @Column
18
    @Enumerated(EnumType.STRING)
19
    private ProfitMandiConstants.COMPANY_OFFICE_TYPE type;
20
 
36809 ranu 21
    @Column(unique = true)
36808 ranu 22
    private String code;
23
 
24
    @Column
36599 vikas 25
    private String name;
26
 
27
    @Column
28
    private String address;
29
 
30
    @Column
31
    private String city;
32
 
33
    @Column
34
    private String state;
35
 
36
    @Column
37
    private double lat;
38
 
39
    @Column
40
    private double lng;
41
 
42
    @Column
43
    private boolean active;
44
 
45
    @Column(name = "create_timestamp")
46
    private LocalDateTime createTimestamp;
47
 
48
    @Column(name = "update_timestamp")
49
    private LocalDateTime updateTimestamp;
50
 
51
    public int getId() {
52
        return id;
53
    }
54
 
55
    public void setId(int id) {
56
        this.id = id;
57
    }
58
 
59
    public ProfitMandiConstants.COMPANY_OFFICE_TYPE getType() {
60
        return type;
61
    }
62
 
63
    public void setType(ProfitMandiConstants.COMPANY_OFFICE_TYPE type) {
64
        this.type = type;
65
    }
66
 
36808 ranu 67
    public String getCode() {
68
        return code;
69
    }
70
 
71
    public void setCode(String code) {
72
        this.code = code;
73
    }
74
 
36599 vikas 75
    public String getName() {
76
        return name;
77
    }
78
 
79
    public void setName(String name) {
80
        this.name = name;
81
    }
82
 
83
    public String getAddress() {
84
        return address;
85
    }
86
 
87
    public void setAddress(String address) {
88
        this.address = address;
89
    }
90
 
91
    public String getCity() {
92
        return city;
93
    }
94
 
95
    public void setCity(String city) {
96
        this.city = city;
97
    }
98
 
99
    public String getState() {
100
        return state;
101
    }
102
 
103
    public void setState(String state) {
104
        this.state = state;
105
    }
106
 
107
    public double getLat() {
108
        return lat;
109
    }
110
 
111
    public void setLat(double lat) {
112
        this.lat = lat;
113
    }
114
 
115
    public double getLng() {
116
        return lng;
117
    }
118
 
119
    public void setLng(double lng) {
120
        this.lng = lng;
121
    }
122
 
123
    public boolean isActive() {
124
        return active;
125
    }
126
 
127
    public void setActive(boolean active) {
128
        this.active = active;
129
    }
130
 
131
    public LocalDateTime getCreateTimestamp() {
132
        return createTimestamp;
133
    }
134
 
135
    public void setCreateTimestamp(LocalDateTime createTimestamp) {
136
        this.createTimestamp = createTimestamp;
137
    }
138
 
139
    public LocalDateTime getUpdateTimestamp() {
140
        return updateTimestamp;
141
    }
142
 
143
    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
144
        this.updateTimestamp = updateTimestamp;
145
    }
146
 
147
    @Override
148
    public String toString() {
149
        return "CompanyOffice{" +
150
                "id=" + id +
151
                ", type=" + type +
152
                ", name='" + name + '\'' +
153
                ", city='" + city + '\'' +
154
                ", state='" + state + '\'' +
155
                ", lat=" + lat +
156
                ", lng=" + lng +
157
                ", active=" + active +
158
                ", createTimestamp=" + createTimestamp +
159
                '}';
160
    }
161
}