Mercurial > dive4elements > river
annotate flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java @ 5799:5a2c7d24fd29
StaticWQKmsState: Also spawn RelativePoint and CrossSectionFacet .
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 24 Apr 2013 08:22:31 +0200 |
parents | d43ef9f709cd |
children |
rev | line source |
---|---|
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.model; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 |
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
|
3 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
|
4 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 import java.io.Serializable; |
5349
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
6 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
|
7 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 import java.math.BigDecimal; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 import javax.persistence.Column; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 import javax.persistence.Entity; |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
12 import javax.persistence.GeneratedValue; |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
13 import javax.persistence.GenerationType; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 import javax.persistence.Id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 import javax.persistence.JoinColumn; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 import javax.persistence.OneToOne; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 import javax.persistence.Table; |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
18 import javax.persistence.SequenceGenerator; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 |
5064
fb7c4ad94bd8
Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents:
5061
diff
changeset
|
20 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
|
21 import org.hibernate.Session; |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
22 import org.hibernate.Query; |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
23 |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
24 import de.intevation.flys.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
|
25 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 @Entity |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 @Table(name = "hws_points") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 public class HWSPoint implements Serializable { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 private Integer id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 |
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
|
32 private Integer ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 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
|
34 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
|
35 private River river; |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
36 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
|
37 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
|
38 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
|
39 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
|
40 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
|
41 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
|
42 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
|
43 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
|
44 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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 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
|
50 private Geometry geom; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 @Id |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
53 @SequenceGenerator( |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
54 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
|
55 sequenceName = "HWS_POINTS_ID_SEQ", |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
56 allocationSize = 1) |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
57 @GeneratedValue( |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
58 strategy = GenerationType.SEQUENCE, |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
59 generator = "SEQUENCE_HWS_POINTS_ID_SEQ") |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 @Column(name = "id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 public Integer getId() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
62 return id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 public void setId(Integer id) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
66 this.id = id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
68 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 @Column(name = "geom") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
71 @Type(type = "org.hibernatespatial.GeometryUserType") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
72 public Geometry getGeom() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
73 return geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
74 } |
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 public void setGeom(Geometry geom) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
78 this.geom = geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
80 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
81 /** |
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
|
82 * Get ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 * |
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
|
84 * @return ogrFid as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
85 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
86 @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
|
87 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
|
88 return ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
90 |
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 * Set ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 * |
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
|
94 * @param ogrFid the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
95 */ |
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
|
96 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
|
97 this.ogrFid = ogrFid; |
5061
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 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
100 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
101 /** |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
102 * Get official. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
103 * |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
104 * @return official as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
105 */ |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
106 @Column(name = "official") |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
107 public Integer getofficial() { |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
108 return official; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
109 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
110 |
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 * Set official. |
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 * @param official the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
115 */ |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
116 public void setofficial(Integer official) { |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
117 this.official = official; |
5061
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 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
120 /** |
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
|
121 * Get shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
122 * |
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
|
123 * @return shoreSide as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
124 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
125 @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
|
126 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
|
127 return shoreSide; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
128 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
129 |
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 * Set shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
132 * |
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
|
133 * @param shoreSide the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
134 */ |
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
|
135 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
|
136 this.shoreSide = shoreSide; |
5061
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 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
139 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
140 * Get name. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
141 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
142 * @return name as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
143 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
144 @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
|
145 public String getName() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
146 return name; |
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 |
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 * Set name. |
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 * @param name the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
153 */ |
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
|
154 public void setName(String name) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
155 this.name = name; |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
159 * Get path. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
160 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
161 * @return path as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
162 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
163 @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
|
164 public String getPath() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
165 return path; |
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 |
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 * Set path. |
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 * @param path the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
172 */ |
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
|
173 public void setPath(String path) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
174 this.path = path; |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
178 * Get agency. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
179 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
180 * @return agency as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
181 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
182 @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
|
183 public String getAgency() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
184 return agency; |
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 |
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 * Set agency. |
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 * @param agency the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
191 */ |
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
|
192 public void setAgency(String agency) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
193 this.agency = agency; |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
197 * Get range. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
198 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
199 * @return range as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
200 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
201 @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
|
202 public String getRange() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
203 return range; |
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 |
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 * Set range. |
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 * @param range the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
210 */ |
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
|
211 public void setRange(String range) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
212 this.range = range; |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
216 * Get source. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
217 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
218 * @return source as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
219 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
220 @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
|
221 public String getSource() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
222 return source; |
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 |
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 * Set source. |
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 * @param source the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
229 */ |
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
|
230 public void setSource(String source) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
231 this.source = source; |
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 /** |
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
|
235 * Get statusDate. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
236 * |
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
|
237 * @return statusDate as String. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
238 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
239 @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
|
240 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
|
241 return statusDate; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
242 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
243 |
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 * Set statusDate. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
246 * |
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
|
247 * @param statusDate the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
248 */ |
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
|
249 public void setStatusDate(String statusDate) |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
250 { |
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
|
251 this.statusDate = statusDate; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
252 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
253 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
254 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
255 * Get description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
256 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
257 * @return description as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
258 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
259 @Column(name = "description") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
260 public String getDescription() |
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 return description; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
263 } |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
266 * Set description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
267 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
268 * @param description the value to set. |
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 public void setDescription(String 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 this.description = description; |
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 |
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 * Get freeboard. |
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 * @return freeboard as BigDecimal. |
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 @Column(name = "freeboard") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
281 public BigDecimal getFreeboard() |
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 return freeboard; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
284 } |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
287 * Set freeboard. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
288 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
289 * @param freeboard the value to set. |
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 public void setFreeboard(BigDecimal 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 this.freeboard = freeboard; |
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 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
296 /** |
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
|
297 * Get dikeKm. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
298 * |
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
|
299 * @return dikeKm as BigDecimal. |
5061
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 @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
|
302 public BigDecimal getDikeKm() |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
303 { |
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
|
304 return dikeKm; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
305 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
306 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
307 /** |
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
|
308 * Set dikeKm. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
309 * |
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 * @param dikeKm the value to set. |
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 public void setDikeKm(BigDecimal dikeKm) |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
313 { |
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
|
314 this.dikeKm = dikeKm; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
315 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
316 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
317 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
318 * Get z. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
319 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
320 * @return z as BigDecimal. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
321 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
322 @Column(name = "z") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
323 public BigDecimal getZ() |
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 return z; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
326 } |
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 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
329 * Set z. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
330 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
331 * @param z the value to set. |
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 public void setZ(BigDecimal 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 this.z = z; |
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 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
338 /** |
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
|
339 * Get zTarget. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
340 * |
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
|
341 * @return zTarget as BigDecimal. |
5061
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 @Column(name = "z_target") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
344 public BigDecimal getZTarget() |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
345 { |
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
|
346 return zTarget; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
347 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
348 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
349 /** |
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
|
350 * Set zTarget. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
351 * |
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
|
352 * @param zTarget the value to set. |
5061
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 public void setZTarget(BigDecimal zTarget) |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
355 { |
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
|
356 this.zTarget = zTarget; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
357 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
358 |
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 * Get ratedLevel. |
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 * @return ratedLevel as BigDecimal. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
363 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
364 @Column(name = "rated_level") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
365 public BigDecimal getRatedLevel() |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
366 { |
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
|
367 return ratedLevel; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
368 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
369 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
370 /** |
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
|
371 * Set ratedLevel. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
372 * |
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
|
373 * @param ratedLevel the value to set. |
5061
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 public void setRatedLevel(BigDecimal ratedLevel) |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
376 { |
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
|
377 this.ratedLevel = ratedLevel; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
378 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
379 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
380 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
381 * Get kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
382 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
383 * @return kind as HWSKind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
384 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
385 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
386 @JoinColumn(name = "kind_id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
387 public HWSKind getKind() |
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 return 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 |
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 * Set kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
394 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
395 * @param kind the value to set. |
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 public void setKind(HWSKind 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 this.kind = kind; |
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 |
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 * Get fedState. |
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 * @return fedState as FedState. |
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 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
408 @JoinColumn(name = "fed_state_id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
409 public FedState getFedState() |
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 return 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 |
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 * Set fedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
416 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
417 * @param fedState the value to set. |
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 public void setFedState(FedState 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 this.fedState = fedState; |
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 |
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 * Get river. |
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 * @return river as River. |
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 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
430 @JoinColumn(name = "river_id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
431 public River getRiver() |
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 return 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 |
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 * Set river. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
438 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
439 * @param river the value to set. |
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 public void setRiver(River 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 this.river = river; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
444 } |
5349
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
445 |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
446 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
|
447 Session session = SessionHolder.HOLDER.get(); |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
448 |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
449 Query query = session.createQuery( |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
450 "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
|
451 query.setParameter("river_id", riverId); |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
452 query.setParameter("name", name); |
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 return query.list(); |
d43ef9f709cd
Add HWSLines and HWSPoints to datacage for the map
Andre Heinecke <aheinecke@intevation.de>
parents:
5183
diff
changeset
|
455 } |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
456 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
457 |