Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java @ 5081:1d95391d056b dami
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 24 Feb 2013 12:56:20 +0100 |
parents | fb7c4ad94bd8 |
children | a2600507761e |
comparison
equal
deleted
inserted
replaced
5078:0fd7720e5c7f | 5081:1d95391d056b |
---|---|
1 package de.intevation.flys.model; | 1 package de.intevation.flys.model; |
2 | 2 |
3 import com.vividsolutions.jts.geom.Geometry; | |
4 | |
3 import java.io.Serializable; | 5 import java.io.Serializable; |
4 import java.util.List; | 6 |
5 import java.math.BigDecimal; | 7 import java.math.BigDecimal; |
6 | 8 |
7 import javax.persistence.Column; | 9 import javax.persistence.Column; |
8 import javax.persistence.Entity; | 10 import javax.persistence.Entity; |
9 import javax.persistence.Id; | 11 import javax.persistence.Id; |
10 import javax.persistence.JoinColumn; | 12 import javax.persistence.JoinColumn; |
11 import javax.persistence.OneToOne; | 13 import javax.persistence.OneToOne; |
12 import javax.persistence.Table; | 14 import javax.persistence.Table; |
13 | 15 |
14 import org.hibernate.Session; | |
15 import org.hibernate.Query; | |
16 import org.hibernate.annotations.Type; | 16 import org.hibernate.annotations.Type; |
17 | |
18 import com.vividsolutions.jts.geom.Geometry; | |
19 | |
20 | |
21 import de.intevation.flys.backend.SessionHolder; | |
22 | 17 |
23 @Entity | 18 @Entity |
24 @Table(name = "hws_points") | 19 @Table(name = "hws_points") |
25 public class HWSPoint implements Serializable { | 20 public class HWSPoint implements Serializable { |
26 | 21 |
27 private Integer id; | 22 private Integer id; |
28 | 23 |
29 private Integer ogr_fid; | 24 private Integer ogrFid; |
30 private HWSKind kind; | 25 private HWSKind kind; |
31 private FedState fedState; | 26 private FedState fedState; |
32 private River river; | 27 private River river; |
33 private Integer offical; | 28 private Integer offical; |
34 private Integer shore_side; | 29 private Integer shoreSide; |
35 private String name; | 30 private String name; |
36 private String path; | 31 private String path; |
37 private String agency; | 32 private String agency; |
38 private String range; | 33 private String range; |
39 private String source; | 34 private String source; |
40 private String status_date; | 35 private String statusDate; |
41 private String description; | 36 private String description; |
42 private BigDecimal freeboard; | 37 private BigDecimal freeboard; |
43 private BigDecimal dike_km; | 38 private BigDecimal dikeKm; |
44 private BigDecimal z; | 39 private BigDecimal z; |
45 private BigDecimal z_target; | 40 private BigDecimal zTarget; |
46 private BigDecimal rated_level; | 41 private BigDecimal ratedLevel; |
47 private Geometry geom; | 42 private Geometry geom; |
48 | 43 |
49 @Id | 44 @Id |
50 @Column(name = "id") | 45 @Column(name = "id") |
51 public Integer getId() { | 46 public Integer getId() { |
52 return id; | 47 return id; |
67 public void setGeom(Geometry geom) { | 62 public void setGeom(Geometry geom) { |
68 this.geom = geom; | 63 this.geom = geom; |
69 } | 64 } |
70 | 65 |
71 /** | 66 /** |
72 * Get ogr_fid. | 67 * Get ogrFid. |
73 * | 68 * |
74 * @return ogr_fid as Integer. | 69 * @return ogrFid as Integer. |
75 */ | 70 */ |
76 @Column(name = "ogr_fid") | 71 @Column(name = "ogr_fid") |
77 public Integer getOgrFid() | 72 public Integer getOgrFid() { |
78 { | 73 return ogrFid; |
79 return ogr_fid; | 74 } |
80 } | 75 |
81 | 76 /** |
82 /** | 77 * Set ogrFid. |
83 * Set ogr_fid. | 78 * |
84 * | 79 * @param ogrFid the value to set. |
85 * @param ogr_fid the value to set. | 80 */ |
86 */ | 81 public void setOgrFid(Integer ogrFid) { |
87 public void setOgrFid(Integer ogr_fid) | 82 this.ogrFid = ogrFid; |
88 { | |
89 this.ogr_fid = ogr_fid; | |
90 } | 83 } |
91 | 84 |
92 | 85 |
93 /** | 86 /** |
94 * Get offical. | 87 * Get offical. |
95 * | 88 * |
96 * @return offical as Integer. | 89 * @return offical as Integer. |
97 */ | 90 */ |
98 @Column(name = "offical") | 91 @Column(name = "offical") |
99 public Integer getOffical() | 92 public Integer getOffical() { |
100 { | |
101 return offical; | 93 return offical; |
102 } | 94 } |
103 | 95 |
104 /** | 96 /** |
105 * Set offical. | 97 * Set offical. |
106 * | 98 * |
107 * @param offical the value to set. | 99 * @param offical the value to set. |
108 */ | 100 */ |
109 public void setOffical(Integer offical) | 101 public void setOffical(Integer offical) { |
110 { | |
111 this.offical = offical; | 102 this.offical = offical; |
112 } | 103 } |
113 | 104 |
114 /** | 105 /** |
115 * Get shore_side. | 106 * Get shoreSide. |
116 * | 107 * |
117 * @return shore_side as Integer. | 108 * @return shoreSide as Integer. |
118 */ | 109 */ |
119 @Column(name = "shore_side") | 110 @Column(name = "shore_side") |
120 public Integer getShoreSide() | 111 public Integer getShoreSide() { |
121 { | 112 return shoreSide; |
122 return shore_side; | 113 } |
123 } | 114 |
124 | 115 /** |
125 /** | 116 * Set shoreSide. |
126 * Set shore_side. | 117 * |
127 * | 118 * @param shoreSide the value to set. |
128 * @param shore_side the value to set. | 119 */ |
129 */ | 120 public void setShoreSide(Integer shoreSide) { |
130 public void setShoreSide(Integer shore_side) | 121 this.shoreSide = shoreSide; |
131 { | |
132 this.shore_side = shore_side; | |
133 } | 122 } |
134 | 123 |
135 /** | 124 /** |
136 * Get name. | 125 * Get name. |
137 * | 126 * |
138 * @return name as String. | 127 * @return name as String. |
139 */ | 128 */ |
140 @Column(name = "name") | 129 @Column(name = "name") |
141 public String getName() | 130 public String getName() { |
142 { | |
143 return name; | 131 return name; |
144 } | 132 } |
145 | 133 |
146 /** | 134 /** |
147 * Set name. | 135 * Set name. |
148 * | 136 * |
149 * @param name the value to set. | 137 * @param name the value to set. |
150 */ | 138 */ |
151 public void setName(String name) | 139 public void setName(String name) { |
152 { | |
153 this.name = name; | 140 this.name = name; |
154 } | 141 } |
155 | 142 |
156 /** | 143 /** |
157 * Get path. | 144 * Get path. |
158 * | 145 * |
159 * @return path as String. | 146 * @return path as String. |
160 */ | 147 */ |
161 @Column(name = "path") | 148 @Column(name = "path") |
162 public String getPath() | 149 public String getPath() { |
163 { | |
164 return path; | 150 return path; |
165 } | 151 } |
166 | 152 |
167 /** | 153 /** |
168 * Set path. | 154 * Set path. |
169 * | 155 * |
170 * @param path the value to set. | 156 * @param path the value to set. |
171 */ | 157 */ |
172 public void setPath(String path) | 158 public void setPath(String path) { |
173 { | |
174 this.path = path; | 159 this.path = path; |
175 } | 160 } |
176 | 161 |
177 /** | 162 /** |
178 * Get agency. | 163 * Get agency. |
179 * | 164 * |
180 * @return agency as String. | 165 * @return agency as String. |
181 */ | 166 */ |
182 @Column(name = "agency") | 167 @Column(name = "agency") |
183 public String getAgency() | 168 public String getAgency() { |
184 { | |
185 return agency; | 169 return agency; |
186 } | 170 } |
187 | 171 |
188 /** | 172 /** |
189 * Set agency. | 173 * Set agency. |
190 * | 174 * |
191 * @param agency the value to set. | 175 * @param agency the value to set. |
192 */ | 176 */ |
193 public void setAgency(String agency) | 177 public void setAgency(String agency) { |
194 { | |
195 this.agency = agency; | 178 this.agency = agency; |
196 } | 179 } |
197 | 180 |
198 /** | 181 /** |
199 * Get range. | 182 * Get range. |
200 * | 183 * |
201 * @return range as String. | 184 * @return range as String. |
202 */ | 185 */ |
203 @Column(name = "range") | 186 @Column(name = "range") |
204 public String getRange() | 187 public String getRange() { |
205 { | |
206 return range; | 188 return range; |
207 } | 189 } |
208 | 190 |
209 /** | 191 /** |
210 * Set range. | 192 * Set range. |
211 * | 193 * |
212 * @param range the value to set. | 194 * @param range the value to set. |
213 */ | 195 */ |
214 public void setRange(String range) | 196 public void setRange(String range) { |
215 { | |
216 this.range = range; | 197 this.range = range; |
217 } | 198 } |
218 | 199 |
219 /** | 200 /** |
220 * Get source. | 201 * Get source. |
221 * | 202 * |
222 * @return source as String. | 203 * @return source as String. |
223 */ | 204 */ |
224 @Column(name = "source") | 205 @Column(name = "source") |
225 public String getSource() | 206 public String getSource() { |
226 { | |
227 return source; | 207 return source; |
228 } | 208 } |
229 | 209 |
230 /** | 210 /** |
231 * Set source. | 211 * Set source. |
232 * | 212 * |
233 * @param source the value to set. | 213 * @param source the value to set. |
234 */ | 214 */ |
235 public void setSource(String source) | 215 public void setSource(String source) { |
236 { | |
237 this.source = source; | 216 this.source = source; |
238 } | 217 } |
239 | 218 |
240 /** | 219 /** |
241 * Get status_date. | 220 * Get statusDate. |
242 * | 221 * |
243 * @return status_date as String. | 222 * @return statusDate as String. |
244 */ | 223 */ |
245 @Column(name = "status_date") | 224 @Column(name = "status_date") |
246 public String getStatusDate() | 225 public String getStatusDate() { |
247 { | 226 return statusDate; |
248 return status_date; | 227 } |
249 } | 228 |
250 | 229 /** |
251 /** | 230 * Set statusDate. |
252 * Set status_date. | 231 * |
253 * | 232 * @param statusDate the value to set. |
254 * @param status_date the value to set. | 233 */ |
255 */ | 234 public void setStatusDate(String statusDate) |
256 public void setStatusDate(String status_date) | 235 { |
257 { | 236 this.statusDate = statusDate; |
258 this.status_date = status_date; | |
259 } | 237 } |
260 | 238 |
261 /** | 239 /** |
262 * Get description. | 240 * Get description. |
263 * | 241 * |
299 { | 277 { |
300 this.freeboard = freeboard; | 278 this.freeboard = freeboard; |
301 } | 279 } |
302 | 280 |
303 /** | 281 /** |
304 * Get dike_km. | 282 * Get dikeKm. |
305 * | 283 * |
306 * @return dike_km as BigDecimal. | 284 * @return dikeKm as BigDecimal. |
307 */ | 285 */ |
308 @Column(name = "dike_km") | 286 @Column(name = "dike_km") |
309 public BigDecimal getDike_km() | 287 public BigDecimal getDikeKm() |
310 { | 288 { |
311 return dike_km; | 289 return dikeKm; |
312 } | 290 } |
313 | 291 |
314 /** | 292 /** |
315 * Set dike_km. | 293 * Set dikeKm. |
316 * | 294 * |
317 * @param dike_km the value to set. | 295 * @param dikeKm the value to set. |
318 */ | 296 */ |
319 public void setDike_km(BigDecimal dike_km) | 297 public void setDikeKm(BigDecimal dikeKm) |
320 { | 298 { |
321 this.dike_km = dike_km; | 299 this.dikeKm = dikeKm; |
322 } | 300 } |
323 | 301 |
324 /** | 302 /** |
325 * Get z. | 303 * Get z. |
326 * | 304 * |
341 { | 319 { |
342 this.z = z; | 320 this.z = z; |
343 } | 321 } |
344 | 322 |
345 /** | 323 /** |
346 * Get z_target. | 324 * Get zTarget. |
347 * | 325 * |
348 * @return z_target as BigDecimal. | 326 * @return zTarget as BigDecimal. |
349 */ | 327 */ |
350 @Column(name = "z_target") | 328 @Column(name = "z_target") |
351 public BigDecimal getZTarget() | 329 public BigDecimal getZTarget() |
352 { | 330 { |
353 return z_target; | 331 return zTarget; |
354 } | 332 } |
355 | 333 |
356 /** | 334 /** |
357 * Set z_target. | 335 * Set zTarget. |
358 * | 336 * |
359 * @param z_target the value to set. | 337 * @param zTarget the value to set. |
360 */ | 338 */ |
361 public void setZTarget(BigDecimal z_target) | 339 public void setZTarget(BigDecimal zTarget) |
362 { | 340 { |
363 this.z_target = z_target; | 341 this.zTarget = zTarget; |
364 } | 342 } |
365 | 343 |
366 /** | 344 /** |
367 * Get rated_level. | 345 * Get ratedLevel. |
368 * | 346 * |
369 * @return rated_level as BigDecimal. | 347 * @return ratedLevel as BigDecimal. |
370 */ | 348 */ |
371 @Column(name = "rated_level") | 349 @Column(name = "rated_level") |
372 public BigDecimal getRatedLevel() | 350 public BigDecimal getRatedLevel() |
373 { | 351 { |
374 return rated_level; | 352 return ratedLevel; |
375 } | 353 } |
376 | 354 |
377 /** | 355 /** |
378 * Set rated_level. | 356 * Set ratedLevel. |
379 * | 357 * |
380 * @param rated_level the value to set. | 358 * @param ratedLevel the value to set. |
381 */ | 359 */ |
382 public void setRatedLevel(BigDecimal rated_level) | 360 public void setRatedLevel(BigDecimal ratedLevel) |
383 { | 361 { |
384 this.rated_level = rated_level; | 362 this.ratedLevel = ratedLevel; |
385 } | 363 } |
386 | 364 |
387 /** | 365 /** |
388 * Get kind. | 366 * Get kind. |
389 * | 367 * |