Subversion Repositories SmartDukaan

Rev

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