comparison flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java @ 5061:c9ba713a7750 dami

Add HWSLine and HWSPoint to the model
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 20 Feb 2013 17:01:42 +0100
parents
children fb7c4ad94bd8
comparison
equal deleted inserted replaced
5060:c629719b87e7 5061:c9ba713a7750
1 package de.intevation.flys.model;
2
3 import java.io.Serializable;
4 import java.util.List;
5 import java.math.BigDecimal;
6
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.Id;
10 import javax.persistence.JoinColumn;
11 import javax.persistence.OneToOne;
12 import javax.persistence.Table;
13
14 import org.hibernate.Session;
15 import org.hibernate.Query;
16
17 import de.intevation.flys.backend.SessionHolder;
18
19 @Entity
20 @Table(name = "hws_points")
21 public class HWSPoint implements Serializable {
22
23 private Integer id;
24
25 private Integer ogr_fid;
26 private HWSKind kind;
27 private FedState fedState;
28 private River river;
29 private Integer offical;
30 private Integer shore_side;
31 private String name;
32 private String path;
33 private String agency;
34 private String range;
35 private String source;
36 private String status_date;
37 private String description;
38 private BigDecimal freeboard;
39 private BigDecimal dike_km;
40 private BigDecimal z;
41 private BigDecimal z_target;
42 private BigDecimal rated_level;
43 private Geometry geom;
44
45 @Id
46 @Column(name = "id")
47 public Integer getId() {
48 return id;
49 }
50
51 public void setId(Integer id) {
52 this.id = id;
53 }
54
55
56 @Column(name = "geom")
57 @Type(type = "org.hibernatespatial.GeometryUserType")
58 public Geometry getGeom() {
59 return geom;
60 }
61
62
63 public void setGeom(Geometry geom) {
64 this.geom = geom;
65 }
66
67 /**
68 * Get ogr_fid.
69 *
70 * @return ogr_fid as Integer.
71 */
72 @Column(name = "ogr_fid")
73 public Integer getOgrFid()
74 {
75 return ogr_fid;
76 }
77
78 /**
79 * Set ogr_fid.
80 *
81 * @param ogr_fid the value to set.
82 */
83 public void setOgrFid(Integer ogr_fid)
84 {
85 this.ogr_fid = ogr_fid;
86 }
87
88
89 /**
90 * Get offical.
91 *
92 * @return offical as Integer.
93 */
94 @Column(name = "offical")
95 public Integer getOffical()
96 {
97 return offical;
98 }
99
100 /**
101 * Set offical.
102 *
103 * @param offical the value to set.
104 */
105 public void setOffical(Integer offical)
106 {
107 this.offical = offical;
108 }
109
110 /**
111 * Get shore_side.
112 *
113 * @return shore_side as Integer.
114 */
115 @Column(name = "shore_side")
116 public Integer getShoreSide()
117 {
118 return shore_side;
119 }
120
121 /**
122 * Set shore_side.
123 *
124 * @param shore_side the value to set.
125 */
126 public void setShoreSide(Integer shore_side)
127 {
128 this.shore_side = shore_side;
129 }
130
131 /**
132 * Get name.
133 *
134 * @return name as String.
135 */
136 @Column(name = "name")
137 public String getName()
138 {
139 return name;
140 }
141
142 /**
143 * Set name.
144 *
145 * @param name the value to set.
146 */
147 public void setName(String name)
148 {
149 this.name = name;
150 }
151
152 /**
153 * Get path.
154 *
155 * @return path as String.
156 */
157 @Column(name = "path")
158 public String getPath()
159 {
160 return path;
161 }
162
163 /**
164 * Set path.
165 *
166 * @param path the value to set.
167 */
168 public void setPath(String path)
169 {
170 this.path = path;
171 }
172
173 /**
174 * Get agency.
175 *
176 * @return agency as String.
177 */
178 @Column(name = "agency")
179 public String getAgency()
180 {
181 return agency;
182 }
183
184 /**
185 * Set agency.
186 *
187 * @param agency the value to set.
188 */
189 public void setAgency(String agency)
190 {
191 this.agency = agency;
192 }
193
194 /**
195 * Get range.
196 *
197 * @return range as String.
198 */
199 @Column(name = "range")
200 public String getRange()
201 {
202 return range;
203 }
204
205 /**
206 * Set range.
207 *
208 * @param range the value to set.
209 */
210 public void setRange(String range)
211 {
212 this.range = range;
213 }
214
215 /**
216 * Get source.
217 *
218 * @return source as String.
219 */
220 @Column(name = "source")
221 public String getSource()
222 {
223 return source;
224 }
225
226 /**
227 * Set source.
228 *
229 * @param source the value to set.
230 */
231 public void setSource(String source)
232 {
233 this.source = source;
234 }
235
236 /**
237 * Get status_date.
238 *
239 * @return status_date as String.
240 */
241 @Column(name = "status_date")
242 public String getStatusDate()
243 {
244 return status_date;
245 }
246
247 /**
248 * Set status_date.
249 *
250 * @param status_date the value to set.
251 */
252 public void setStatusDate(String status_date)
253 {
254 this.status_date = status_date;
255 }
256
257 /**
258 * Get description.
259 *
260 * @return description as String.
261 */
262 @Column(name = "description")
263 public String getDescription()
264 {
265 return description;
266 }
267
268 /**
269 * Set description.
270 *
271 * @param description the value to set.
272 */
273 public void setDescription(String description)
274 {
275 this.description = description;
276 }
277
278 /**
279 * Get freeboard.
280 *
281 * @return freeboard as BigDecimal.
282 */
283 @Column(name = "freeboard")
284 public BigDecimal getFreeboard()
285 {
286 return freeboard;
287 }
288
289 /**
290 * Set freeboard.
291 *
292 * @param freeboard the value to set.
293 */
294 public void setFreeboard(BigDecimal freeboard)
295 {
296 this.freeboard = freeboard;
297 }
298
299 /**
300 * Get dike_km.
301 *
302 * @return dike_km as BigDecimal.
303 */
304 @Column(name = "dike_km")
305 public BigDecimal getDike_km()
306 {
307 return dike_km;
308 }
309
310 /**
311 * Set dike_km.
312 *
313 * @param dike_km the value to set.
314 */
315 public void setDike_km(BigDecimal dike_km)
316 {
317 this.dike_km = dike_km;
318 }
319
320 /**
321 * Get z.
322 *
323 * @return z as BigDecimal.
324 */
325 @Column(name = "z")
326 public BigDecimal getZ()
327 {
328 return z;
329 }
330
331 /**
332 * Set z.
333 *
334 * @param z the value to set.
335 */
336 public void setZ(BigDecimal z)
337 {
338 this.z = z;
339 }
340
341 /**
342 * Get z_target.
343 *
344 * @return z_target as BigDecimal.
345 */
346 @Column(name = "z_target")
347 public BigDecimal getZTarget()
348 {
349 return z_target;
350 }
351
352 /**
353 * Set z_target.
354 *
355 * @param z_target the value to set.
356 */
357 public void setZTarget(BigDecimal z_target)
358 {
359 this.z_target = z_target;
360 }
361
362 /**
363 * Get rated_level.
364 *
365 * @return rated_level as BigDecimal.
366 */
367 @Column(name = "rated_level")
368 public BigDecimal getRatedLevel()
369 {
370 return rated_level;
371 }
372
373 /**
374 * Set rated_level.
375 *
376 * @param rated_level the value to set.
377 */
378 public void setRatedLevel(BigDecimal rated_level)
379 {
380 this.rated_level = rated_level;
381 }
382
383 /**
384 * Get kind.
385 *
386 * @return kind as HWSKind.
387 */
388 @OneToOne
389 @JoinColumn(name = "kind_id")
390 public HWSKind getKind()
391 {
392 return kind;
393 }
394
395 /**
396 * Set kind.
397 *
398 * @param kind the value to set.
399 */
400 public void setKind(HWSKind kind)
401 {
402 this.kind = kind;
403 }
404
405 /**
406 * Get fedState.
407 *
408 * @return fedState as FedState.
409 */
410 @OneToOne
411 @JoinColumn(name = "fed_state_id")
412 public FedState getFedState()
413 {
414 return fedState;
415 }
416
417 /**
418 * Set fedState.
419 *
420 * @param fedState the value to set.
421 */
422 public void setFedState(FedState fedState)
423 {
424 this.fedState = fedState;
425 }
426
427 /**
428 * Get river.
429 *
430 * @return river as River.
431 */
432 @OneToOne
433 @JoinColumn(name = "river_id")
434 public River getRiver()
435 {
436 return river;
437 }
438
439 /**
440 * Set river.
441 *
442 * @param river the value to set.
443 */
444 public void setRiver(River river)
445 {
446 this.river = river;
447 }
448 }
449

http://dive4elements.wald.intevation.org