annotate backend/src/main/java/org/dive4elements/river/model/HWSPoint.java @ 8813:8abe94270f32

Do not filter cross section points for display. Filtering coordinates outside an extent probably aimed at omitting outliers from the diagram. This is obsolete and had the side effect of filtering the important point at x = 0.
author Tom Gottfried <tom@intevation.de>
date Fri, 28 Apr 2017 19:03:56 +0200
parents 4c3ccf2b0304
children
rev   line source
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
6 * documentation coming with Dive4Elements River for details.
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5829
18619c1e7c2a Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5828
diff changeset
9 package org.dive4elements.river.model;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
11 import com.vividsolutions.jts.geom.Geometry;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
12
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 import java.io.Serializable;
5349
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
14 import java.util.List;
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
15
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 import java.math.BigDecimal;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 import javax.persistence.Column;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19 import javax.persistence.Entity;
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
20 import javax.persistence.GeneratedValue;
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
21 import javax.persistence.GenerationType;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
22 import javax.persistence.Id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
23 import javax.persistence.JoinColumn;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
24 import javax.persistence.OneToOne;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
25 import javax.persistence.Table;
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
26 import javax.persistence.SequenceGenerator;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
27
5064
fb7c4ad94bd8 Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents: 5061
diff changeset
28 import org.hibernate.annotations.Type;
5349
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
29 import org.hibernate.Session;
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
30 import org.hibernate.Query;
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
31
5829
18619c1e7c2a Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5828
diff changeset
32 import org.dive4elements.river.backend.SessionHolder;
5064
fb7c4ad94bd8 Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents: 5061
diff changeset
33
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
34 @Entity
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
35 @Table(name = "hws_points")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
36 public class HWSPoint implements Serializable {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
37
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
38 private Integer id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
39
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
40 private Integer ogrFid;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
41 private HWSKind kind;
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
42 private FedState fedState;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
43 private River river;
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
44 private Integer official;
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
45 private Integer shoreSide;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
46 private String name;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
47 private String path;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
48 private String agency;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
49 private String range;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
50 private String source;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
51 private String statusDate;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
52 private String description;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
53 private BigDecimal freeboard;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
54 private BigDecimal dikeKm;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
55 private BigDecimal z;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
56 private BigDecimal zTarget;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
57 private BigDecimal ratedLevel;
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
58 private Geometry geom;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
59
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
60 @Id
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
61 @SequenceGenerator(
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
62 name = "SEQUENCE_HWS_POINTS_ID_SEQ",
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
63 sequenceName = "HWS_POINTS_ID_SEQ",
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
64 allocationSize = 1)
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
65 @GeneratedValue(
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
66 strategy = GenerationType.SEQUENCE,
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
67 generator = "SEQUENCE_HWS_POINTS_ID_SEQ")
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
68 @Column(name = "id")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
69 public Integer getId() {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
70 return id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
71 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
72
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
73 public void setId(Integer id) {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
74 this.id = id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
75 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
76
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
77
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
78 @Column(name = "geom")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
79 @Type(type = "org.hibernatespatial.GeometryUserType")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
80 public Geometry getGeom() {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
81 return geom;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
82 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
83
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
84
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
85 public void setGeom(Geometry geom) {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
86 this.geom = geom;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
87 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
88
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
89 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
90 * Get ogrFid.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
91 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
92 * @return ogrFid as Integer.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
93 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
94 @Column(name = "ogr_fid")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
95 public Integer getOgrFid() {
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
96 return ogrFid;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
97 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
98
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
99 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
100 * Set ogrFid.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
101 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
102 * @param ogrFid the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
103 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
104 public void setOgrFid(Integer ogrFid) {
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
105 this.ogrFid = ogrFid;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
106 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
107
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
108
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
109 /**
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
110 * Get official.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
111 *
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
112 * @return official as Integer.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
113 */
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
114 @Column(name = "official")
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
115 public Integer getofficial() {
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
116 return official;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
117 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
118
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
119 /**
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
120 * Set official.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
121 *
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
122 * @param official the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
123 */
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
124 public void setofficial(Integer official) {
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
125 this.official = official;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
126 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
127
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
128 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
129 * Get shoreSide.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
130 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
131 * @return shoreSide as Integer.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
132 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
133 @Column(name = "shore_side")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
134 public Integer getShoreSide() {
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
135 return shoreSide;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
136 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
137
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
138 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
139 * Set shoreSide.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
140 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
141 * @param shoreSide the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
142 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
143 public void setShoreSide(Integer shoreSide) {
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
144 this.shoreSide = shoreSide;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
145 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
146
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
147 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
148 * Get name.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
149 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
150 * @return name as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
151 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
152 @Column(name = "name")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
153 public String getName() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
154 return name;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
155 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
156
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
157 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
158 * Set name.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
159 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
160 * @param name the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
161 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
162 public void setName(String name) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
163 this.name = name;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
164 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
165
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
166 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
167 * Get path.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
168 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
169 * @return path as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
170 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
171 @Column(name = "path")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
172 public String getPath() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
173 return path;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
174 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
175
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
176 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
177 * Set path.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
178 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
179 * @param path the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
180 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
181 public void setPath(String path) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
182 this.path = path;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
183 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
184
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
185 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
186 * Get agency.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
187 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
188 * @return agency as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
189 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
190 @Column(name = "agency")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
191 public String getAgency() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
192 return agency;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
193 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
194
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
195 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
196 * Set agency.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
197 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
198 * @param agency the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
199 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
200 public void setAgency(String agency) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
201 this.agency = agency;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
202 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
203
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
204 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
205 * Get range.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
206 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
207 * @return range as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
208 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
209 @Column(name = "range")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
210 public String getRange() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
211 return range;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
212 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
213
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
214 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
215 * Set range.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
216 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
217 * @param range the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
218 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
219 public void setRange(String range) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
220 this.range = range;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
221 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
222
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
223 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
224 * Get source.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
225 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
226 * @return source as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
227 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
228 @Column(name = "source")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
229 public String getSource() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
230 return source;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
231 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
232
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
233 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
234 * Set source.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
235 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
236 * @param source the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
237 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
238 public void setSource(String source) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
239 this.source = source;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
240 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
241
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
242 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
243 * Get statusDate.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
244 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
245 * @return statusDate as String.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
246 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
247 @Column(name = "status_date")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
248 public String getStatusDate() {
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
249 return statusDate;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
250 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
251
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
252 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
253 * Set statusDate.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
254 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
255 * @param statusDate the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
256 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
257 public void setStatusDate(String statusDate)
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
258 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
259 this.statusDate = statusDate;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
260 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
261
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
262 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
263 * Get description.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
264 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
265 * @return description as String.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
266 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
267 @Column(name = "description")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
268 public String getDescription()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
269 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
270 return description;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
271 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
272
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
273 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
274 * Set description.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
275 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
276 * @param description the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
277 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
278 public void setDescription(String description)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
279 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
280 this.description = description;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
281 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
282
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
283 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
284 * Get freeboard.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
285 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
286 * @return freeboard as BigDecimal.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
287 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
288 @Column(name = "freeboard")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
289 public BigDecimal getFreeboard()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
290 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
291 return freeboard;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
292 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
293
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
294 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
295 * Set freeboard.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
296 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
297 * @param freeboard the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
298 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
299 public void setFreeboard(BigDecimal freeboard)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
300 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
301 this.freeboard = freeboard;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
302 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
303
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
304 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
305 * Get dikeKm.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
306 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
307 * @return dikeKm as BigDecimal.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
308 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
309 @Column(name = "dike_km")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
310 public BigDecimal getDikeKm()
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
311 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
312 return dikeKm;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
313 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
314
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
315 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
316 * Set dikeKm.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
317 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
318 * @param dikeKm the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
319 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
320 public void setDikeKm(BigDecimal dikeKm)
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
321 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
322 this.dikeKm = dikeKm;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
323 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
324
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
325 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
326 * Get z.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
327 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
328 * @return z as BigDecimal.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
329 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
330 @Column(name = "z")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
331 public BigDecimal getZ()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
332 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
333 return z;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
334 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
335
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
336 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
337 * Set z.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
338 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
339 * @param z the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
340 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
341 public void setZ(BigDecimal z)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
342 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
343 this.z = z;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
344 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
345
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
346 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
347 * Get zTarget.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
348 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
349 * @return zTarget as BigDecimal.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
350 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
351 @Column(name = "z_target")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
352 public BigDecimal getZTarget()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
353 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
354 return zTarget;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
355 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
356
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
357 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
358 * Set zTarget.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
359 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
360 * @param zTarget the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
361 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
362 public void setZTarget(BigDecimal zTarget)
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
363 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
364 this.zTarget = zTarget;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
365 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
366
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
367 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
368 * Get ratedLevel.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
369 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
370 * @return ratedLevel as BigDecimal.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
371 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
372 @Column(name = "rated_level")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
373 public BigDecimal getRatedLevel()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
374 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
375 return ratedLevel;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
376 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
377
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
378 /**
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
379 * Set ratedLevel.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
380 *
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
381 * @param ratedLevel the value to set.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
382 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
383 public void setRatedLevel(BigDecimal ratedLevel)
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
384 {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
385 this.ratedLevel = ratedLevel;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
386 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
387
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
388 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
389 * Get kind.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
390 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
391 * @return kind as HWSKind.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
392 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
393 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
394 @JoinColumn(name = "kind_id")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
395 public HWSKind getKind()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
396 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
397 return kind;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
398 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
399
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
400 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
401 * Set kind.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
402 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
403 * @param kind the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
404 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
405 public void setKind(HWSKind kind)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
406 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
407 this.kind = kind;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
408 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
409
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
410 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
411 * Get fedState.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
412 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
413 * @return fedState as FedState.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
414 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
415 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
416 @JoinColumn(name = "fed_state_id")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
417 public FedState getFedState()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
418 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
419 return fedState;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
420 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
421
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
422 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
423 * Set fedState.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
424 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
425 * @param fedState the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
426 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
427 public void setFedState(FedState fedState)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
428 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
429 this.fedState = fedState;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
430 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
431
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
432 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
433 * Get river.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
434 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
435 * @return river as River.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
436 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
437 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
438 @JoinColumn(name = "river_id")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
439 public River getRiver()
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
440 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
441 return river;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
442 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
443
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
444 /**
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
445 * Set river.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
446 *
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
447 * @param river the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
448 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
449 public void setRiver(River river)
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
450 {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
451 this.river = river;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
452 }
5349
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
453
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
454 public static List<HWSPoint> getPoints(int riverId, String name) {
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
455 Session session = SessionHolder.HOLDER.get();
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
456
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
457 Query query = session.createQuery(
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
458 "from HWSPoint where river.id =:river_id and name=:name");
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
459 query.setParameter("river_id", riverId);
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
460 query.setParameter("name", name);
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
461
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
462 return query.list();
d43ef9f709cd Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents: 5183
diff changeset
463 }
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
464 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
465

http://dive4elements.wald.intevation.org