comparison flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java @ 5128:a020100ee6a1

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

http://dive4elements.wald.intevation.org