Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/HWSLine.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 | 2878b816e945 |
comparison
equal
deleted
inserted
replaced
5078:0fd7720e5c7f | 5081:1d95391d056b |
---|---|
1 package de.intevation.flys.model; | 1 package de.intevation.flys.model; |
2 | |
3 import com.vividsolutions.jts.geom.Geometry; | |
4 | |
5 import de.intevation.flys.model.HWSKind; | |
2 | 6 |
3 import java.io.Serializable; | 7 import java.io.Serializable; |
4 | 8 |
5 import javax.persistence.Column; | 9 import javax.persistence.Column; |
6 import javax.persistence.Entity; | 10 import javax.persistence.Entity; |
7 import javax.persistence.Id; | 11 import javax.persistence.Id; |
8 import javax.persistence.JoinColumn; | 12 import javax.persistence.JoinColumn; |
9 import javax.persistence.OneToOne; | 13 import javax.persistence.OneToOne; |
10 import javax.persistence.Table; | 14 import javax.persistence.Table; |
11 | 15 |
12 import org.hibernate.Session; | |
13 import org.hibernate.Query; | |
14 import org.hibernate.annotations.Type; | 16 import org.hibernate.annotations.Type; |
15 | |
16 import de.intevation.flys.backend.SessionHolder; | |
17 import de.intevation.flys.model.HWSKind; | |
18 | |
19 import com.vividsolutions.jts.geom.Geometry; | |
20 | 17 |
21 @Entity | 18 @Entity |
22 @Table(name = "hws_lines") | 19 @Table(name = "hws_lines") |
23 public class HWSLine implements Serializable { | 20 public class HWSLine implements Serializable { |
24 | 21 |
25 private Integer id; | 22 private Integer id; |
26 | 23 |
27 private Integer ogr_fid; | 24 private Integer ogrFid; |
28 private HWSKind kind; | 25 private HWSKind kind; |
29 private FedState fedState; | 26 private FedState fedState; |
30 private River river; | 27 private River river; |
31 private Integer offical; | 28 private Integer offical; |
32 private Integer shore_side; | 29 private Integer shoreSide; |
33 private String name; | 30 private String name; |
34 private String path; | 31 private String path; |
35 private String agency; | 32 private String agency; |
36 private String range; | 33 private String range; |
37 private String source; | 34 private String source; |
38 private String status_date; | 35 private String status_date; |
39 private String description; | 36 private String description; |
40 private Geometry geom; | 37 private Geometry geom; |
41 | 38 |
42 @Id | 39 @Id |
43 @Column(name = "id") | 40 @Column(name = "id") |
44 public Integer getId() { | 41 public Integer getId() { |
45 return id; | 42 return id; |
59 public void setGeom(Geometry geom) { | 56 public void setGeom(Geometry geom) { |
60 this.geom = geom; | 57 this.geom = geom; |
61 } | 58 } |
62 | 59 |
63 /** | 60 /** |
64 * Get ogr_fid. | 61 * Get ogrFid. |
65 * | 62 * |
66 * @return ogr_fid as Integer. | 63 * @return ogrFid as Integer. |
67 */ | 64 */ |
68 @Column(name = "ogr_fid") | 65 @Column(name = "ogr_fid") |
69 public Integer getOgrFid() | 66 public Integer getOgrFid() { |
70 { | 67 return ogrFid; |
71 return ogr_fid; | 68 } |
72 } | 69 |
73 | 70 /** |
74 /** | 71 * Set ogrFid. |
75 * Set ogr_fid. | 72 * |
76 * | 73 * @param ogrFid the value to set. |
77 * @param ogr_fid the value to set. | 74 */ |
78 */ | 75 public void setOgrFid(Integer ogrFid) { |
79 public void setOgrFid(Integer ogr_fid) | 76 this.ogrFid = ogrFid; |
80 { | |
81 this.ogr_fid = ogr_fid; | |
82 } | 77 } |
83 | 78 |
84 | 79 |
85 /** | 80 /** |
86 * Get offical. | 81 * Get offical. |
87 * | 82 * |
88 * @return offical as Integer. | 83 * @return offical as Integer. |
89 */ | 84 */ |
90 @Column(name = "offical") | 85 @Column(name = "offical") |
91 public Integer getOffical() | 86 public Integer getOffical() { |
92 { | |
93 return offical; | 87 return offical; |
94 } | 88 } |
95 | 89 |
96 /** | 90 /** |
97 * Set offical. | 91 * Set offical. |
98 * | 92 * |
99 * @param offical the value to set. | 93 * @param offical the value to set. |
100 */ | 94 */ |
101 public void setOffical(Integer offical) | 95 public void setOffical(Integer offical) { |
102 { | |
103 this.offical = offical; | 96 this.offical = offical; |
104 } | 97 } |
105 | 98 |
106 /** | 99 /** |
107 * Get shore_side. | 100 * Get shoreSide. |
108 * | 101 * |
109 * @return shore_side as Integer. | 102 * @return shoreSide as Integer. |
110 */ | 103 */ |
111 @Column(name = "shore_side") | 104 @Column(name = "shore_side") |
112 public Integer getShoreSide() | 105 public Integer getShoreSide() { |
113 { | 106 return shoreSide; |
114 return shore_side; | 107 } |
115 } | 108 |
116 | 109 /** |
117 /** | 110 * Set shoreSide. |
118 * Set shore_side. | 111 * |
119 * | 112 * @param shoreSide the value to set. |
120 * @param shore_side the value to set. | 113 */ |
121 */ | 114 public void setShoreSide(Integer shoreSide) { |
122 public void setShoreSide(Integer shore_side) | 115 this.shoreSide = shoreSide; |
123 { | |
124 this.shore_side = shore_side; | |
125 } | 116 } |
126 | 117 |
127 /** | 118 /** |
128 * Get name. | 119 * Get name. |
129 * | 120 * |
130 * @return name as String. | 121 * @return name as String. |
131 */ | 122 */ |
132 @Column(name = "name") | 123 @Column(name = "name") |
133 public String getName() | 124 public String getName() { |
134 { | |
135 return name; | 125 return name; |
136 } | 126 } |
137 | 127 |
138 /** | 128 /** |
139 * Set name. | 129 * Set name. |
140 * | 130 * |
141 * @param name the value to set. | 131 * @param name the value to set. |
142 */ | 132 */ |
143 public void setName(String name) | 133 public void setName(String name) { |
144 { | |
145 this.name = name; | 134 this.name = name; |
146 } | 135 } |
147 | 136 |
148 /** | 137 /** |
149 * Get path. | 138 * Get path. |
150 * | 139 * |
151 * @return path as String. | 140 * @return path as String. |
152 */ | 141 */ |
153 @Column(name = "path") | 142 @Column(name = "path") |
154 public String getPath() | 143 public String getPath() { |
155 { | |
156 return path; | 144 return path; |
157 } | 145 } |
158 | 146 |
159 /** | 147 /** |
160 * Set path. | 148 * Set path. |
161 * | 149 * |
162 * @param path the value to set. | 150 * @param path the value to set. |
163 */ | 151 */ |
164 public void setPath(String path) | 152 public void setPath(String path) { |
165 { | |
166 this.path = path; | 153 this.path = path; |
167 } | 154 } |
168 | 155 |
169 /** | 156 /** |
170 * Get agency. | 157 * Get agency. |
171 * | 158 * |
172 * @return agency as String. | 159 * @return agency as String. |
173 */ | 160 */ |
174 @Column(name = "agency") | 161 @Column(name = "agency") |
175 public String getAgency() | 162 public String getAgency() { |
176 { | |
177 return agency; | 163 return agency; |
178 } | 164 } |
179 | 165 |
180 /** | 166 /** |
181 * Set agency. | 167 * Set agency. |
182 * | 168 * |
183 * @param agency the value to set. | 169 * @param agency the value to set. |
184 */ | 170 */ |
185 public void setAgency(String agency) | 171 public void setAgency(String agency) { |
186 { | |
187 this.agency = agency; | 172 this.agency = agency; |
188 } | 173 } |
189 | 174 |
190 /** | 175 /** |
191 * Get range. | 176 * Get range. |
192 * | 177 * |
193 * @return range as String. | 178 * @return range as String. |
194 */ | 179 */ |
195 @Column(name = "range") | 180 @Column(name = "range") |
196 public String getRange() | 181 public String getRange() { |
197 { | |
198 return range; | 182 return range; |
199 } | 183 } |
200 | 184 |
201 /** | 185 /** |
202 * Set range. | 186 * Set range. |
203 * | 187 * |
204 * @param range the value to set. | 188 * @param range the value to set. |
205 */ | 189 */ |
206 public void setRange(String range) | 190 public void setRange(String range) { |
207 { | |
208 this.range = range; | 191 this.range = range; |
209 } | 192 } |
210 | 193 |
211 /** | 194 /** |
212 * Get source. | 195 * Get source. |
213 * | 196 * |
214 * @return source as String. | 197 * @return source as String. |
215 */ | 198 */ |
216 @Column(name = "source") | 199 @Column(name = "source") |
217 public String getSource() | 200 public String getSource() { |
218 { | |
219 return source; | 201 return source; |
220 } | 202 } |
221 | 203 |
222 /** | 204 /** |
223 * Set source. | 205 * Set source. |
224 * | 206 * |
225 * @param source the value to set. | 207 * @param source the value to set. |
226 */ | 208 */ |
227 public void setSource(String source) | 209 public void setSource(String source) { |
228 { | |
229 this.source = source; | 210 this.source = source; |
230 } | 211 } |
231 | 212 |
232 /** | 213 /** |
233 * Get status_date. | 214 * Get status_date. |
234 * | 215 * |
235 * @return status_date as String. | 216 * @return status_date as String. |
236 */ | 217 */ |
237 @Column(name = "status_date") | 218 @Column(name = "status_date") |
238 public String getStatusDate() | 219 public String getStatusDate() { |
239 { | |
240 return status_date; | 220 return status_date; |
241 } | 221 } |
242 | 222 |
243 /** | 223 /** |
244 * Set status_date. | 224 * Set status_date. |
245 * | 225 * |
246 * @param status_date the value to set. | 226 * @param status_date the value to set. |
247 */ | 227 */ |
248 public void setStatusDate(String status_date) | 228 public void setStatusDate(String status_date) { |
249 { | |
250 this.status_date = status_date; | 229 this.status_date = status_date; |
251 } | 230 } |
252 | 231 |
253 /** | 232 /** |
254 * Get description. | 233 * Get description. |
255 * | 234 * |
256 * @return description as String. | 235 * @return description as String. |
257 */ | 236 */ |
258 @Column(name = "description") | 237 @Column(name = "description") |
259 public String getDescription() | 238 public String getDescription() { |
260 { | |
261 return description; | 239 return description; |
262 } | 240 } |
263 | 241 |
264 /** | 242 /** |
265 * Set description. | 243 * Set description. |
266 * | 244 * |
267 * @param description the value to set. | 245 * @param description the value to set. |
268 */ | 246 */ |
269 public void setDescription(String description) | 247 public void setDescription(String description) { |
270 { | |
271 this.description = description; | 248 this.description = description; |
272 } | 249 } |
273 | 250 |
274 /** | 251 /** |
275 * Get kind. | 252 * Get kind. |
276 * | 253 * |
277 * @return kind as HWSKind. | 254 * @return kind as HWSKind. |
278 */ | 255 */ |
279 @OneToOne | 256 @OneToOne |
280 @JoinColumn(name = "kind_id") | 257 @JoinColumn(name = "kind_id") |
281 public HWSKind getKind() | 258 public HWSKind getKind() { |
282 { | |
283 return kind; | 259 return kind; |
284 } | 260 } |
285 | 261 |
286 /** | 262 /** |
287 * Set kind. | 263 * Set kind. |
288 * | 264 * |
289 * @param kind the value to set. | 265 * @param kind the value to set. |
290 */ | 266 */ |
291 public void setKind(HWSKind kind) | 267 public void setKind(HWSKind kind) { |
292 { | |
293 this.kind = kind; | 268 this.kind = kind; |
294 } | 269 } |
295 | 270 |
296 /** | 271 /** |
297 * Get fedState. | 272 * Get fedState. |
298 * | 273 * |
299 * @return fedState as FedState. | 274 * @return fedState as FedState. |
300 */ | 275 */ |
301 @OneToOne | 276 @OneToOne |
302 @JoinColumn(name = "fed_state_id") | 277 @JoinColumn(name = "fed_state_id") |
303 public FedState getFedState() | 278 public FedState getFedState() { |
304 { | |
305 return fedState; | 279 return fedState; |
306 } | 280 } |
307 | 281 |
308 /** | 282 /** |
309 * Set fedState. | 283 * Set fedState. |
310 * | 284 * |
311 * @param fedState the value to set. | 285 * @param fedState the value to set. |
312 */ | 286 */ |
313 public void setFedState(FedState fedState) | 287 public void setFedState(FedState fedState) { |
314 { | |
315 this.fedState = fedState; | 288 this.fedState = fedState; |
316 } | 289 } |
317 | 290 |
318 /** | 291 /** |
319 * Get river. | 292 * Get river. |
320 * | 293 * |
321 * @return river as River. | 294 * @return river as River. |
322 */ | 295 */ |
323 @OneToOne | 296 @OneToOne |
324 @JoinColumn(name = "river_id") | 297 @JoinColumn(name = "river_id") |
325 public River getRiver() | 298 public River getRiver() { |
326 { | |
327 return river; | 299 return river; |
328 } | 300 } |
329 | 301 |
330 /** | 302 /** |
331 * Set river. | 303 * Set river. |
332 * | 304 * |
333 * @param river the value to set. | 305 * @param river the value to set. |
334 */ | 306 */ |
335 public void setRiver(River river) | 307 public void setRiver(River river) { |
336 { | |
337 this.river = river; | 308 this.river = river; |
338 } | 309 } |
339 } | 310 } |