1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.mobility.library.entity;
17
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.GeneratedValue;
21 import javax.persistence.GenerationType;
22 import javax.persistence.Id;
23 import javax.persistence.NamedQueries;
24 import javax.persistence.NamedQuery;
25 import javax.persistence.Table;
26 import javax.persistence.Version;
27
28
29
30
31
32
33
34 @NamedQueries({
35
36 @NamedQuery(
37 name="Library.getContactDetail",
38 query="SELECT a FROM LibraryContactDetail a where a.id = :libraryContactDetailId")
39 })
40 @Entity
41 @Table(name="LIBRARY_CONTACT_DETAIL")
42 public class LibraryContactDetail {
43
44
45 @Id
46 @GeneratedValue(strategy = GenerationType.TABLE)
47 @Column(name="ID")
48 private long id;
49
50
51
52
53 @Column(name="TELEPHONE", length=25)
54 private String telephone;
55
56
57
58
59 @Column(name="FAX" , length=25)
60 private String fax;
61
62
63
64
65 @Column(name="GENERAL_INFO_DESK")
66 private String generalInfoDesk = "";
67
68
69
70
71 @Column(name="EMAIL" , length=300)
72 private String email;
73
74
75
76
77 @Column(name="POSTAL_ADDR")
78 private String postalAddress;
79
80
81
82
83 @Column(name="PHYSICAL_ADDR")
84 private String physicalAddress;
85
86
87
88
89 @Column(name="LATITUDE" , length=25)
90 private String latitude;
91
92
93
94
95 @Column(name="LONGITUDE" , length=25)
96 private String longitude;
97
98
99
100
101 @Version
102 @Column(name="VERSION")
103 private long version;
104
105
106
107
108
109 public long getId() {
110 return id;
111 }
112
113
114
115
116
117 public void setId(long id) {
118 this.id = id;
119 }
120
121
122
123
124
125 public String getTelephone() {
126 return telephone;
127 }
128
129
130
131
132
133 public void setTelephone(String telephone) {
134 this.telephone = telephone;
135 }
136
137
138
139
140
141 public String getFax() {
142 return fax;
143 }
144
145
146
147
148
149 public void setFax(String fax) {
150 this.fax = fax;
151 }
152
153
154
155
156
157 public String getGeneralInfoDesk() {
158 return generalInfoDesk;
159 }
160
161
162
163
164
165 public void setGeneralInfoDesk(String generalInfoDesk) {
166 this.generalInfoDesk = generalInfoDesk;
167 }
168
169
170
171
172
173 public String getEmail() {
174 return email;
175 }
176
177
178
179
180
181 public void setEmail(String email) {
182 this.email = email;
183 }
184
185
186
187
188
189 public String getPostalAddress() {
190 return postalAddress;
191 }
192
193
194
195
196
197 public void setPostalAddress(String postalAddress) {
198 this.postalAddress = postalAddress;
199 }
200
201
202
203
204
205 public String getPhysicalAddress() {
206 return physicalAddress;
207 }
208
209
210
211
212
213 public void setPhysicalAddress(String physicalAddress) {
214 this.physicalAddress = physicalAddress;
215 }
216
217
218
219
220
221 public String getLatitude() {
222 return latitude;
223 }
224
225
226
227
228
229 public void setLatitude(String latitude) {
230 this.latitude = latitude;
231 }
232
233
234
235
236
237 public String getLongitude() {
238 return longitude;
239 }
240
241
242
243
244
245 public void setLongitude(String longitude) {
246 this.longitude = longitude;
247 }
248
249
250
251
252
253 public long getVersion() {
254 return version;
255 }
256
257
258
259
260
261 public void setVersion(long version) {
262 this.version = version;
263 }
264
265
266 }