Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/Station.java @ 5873:1e68eca26b8a
river backend: Moved SedDB hibernate model to org/dive4elements/river/seddb.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 11:33:01 +0200 |
parents | backend/src/main/java/de/intevation/seddb/model/Station.java@4dd33b86dc61 |
children | 7ba4815a52a4 |
comparison
equal
deleted
inserted
replaced
5872:bc4e1bf26227 | 5873:1e68eca26b8a |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.seddb.model; | |
10 // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 | |
11 | |
12 | |
13 import java.math.BigDecimal; | |
14 import java.util.HashSet; | |
15 import java.util.Set; | |
16 import javax.persistence.Column; | |
17 import javax.persistence.Entity; | |
18 import javax.persistence.FetchType; | |
19 import javax.persistence.Id; | |
20 import javax.persistence.JoinColumn; | |
21 import javax.persistence.ManyToOne; | |
22 import javax.persistence.OneToMany; | |
23 import javax.persistence.Table; | |
24 import javax.persistence.UniqueConstraint; | |
25 | |
26 /** | |
27 * Station generated by hbm2java | |
28 */ | |
29 @Entity | |
30 @Table(name="STATION" | |
31 ,schema="SEDDB" | |
32 , uniqueConstraints = @UniqueConstraint(columnNames={"GEWAESSERID", "NAME"}) | |
33 ) | |
34 public class Station implements java.io.Serializable { | |
35 | |
36 | |
37 private long stationid; | |
38 private Bezugspegel bezugspegel; | |
39 private Gewaesser gewaesser; | |
40 private BigDecimal km; | |
41 private String name; | |
42 private boolean uferistlinks; | |
43 private BigDecimal teilVon; | |
44 private BigDecimal teilBis; | |
45 private BigDecimal abstHmst; | |
46 private BigDecimal LHochwert; | |
47 private BigDecimal LRechwert; | |
48 private BigDecimal LNn; | |
49 private BigDecimal RHochwert; | |
50 private BigDecimal RRechwert; | |
51 private BigDecimal RNn; | |
52 private String bemerkung; | |
53 private Long oldmstid; | |
54 private boolean istfeststoff; | |
55 private Set<Sohltest> sohltests = new HashSet<Sohltest>(0); | |
56 private Set<Hpeilung> hpeilungs = new HashSet<Hpeilung>(0); | |
57 private Set<Mpeilung> mpeilungs = new HashSet<Mpeilung>(0); | |
58 private Set<Messung> messungs = new HashSet<Messung>(0); | |
59 | |
60 public Station() { | |
61 } | |
62 | |
63 public Station(long stationid, Gewaesser gewaesser, BigDecimal km, String name, boolean uferistlinks, boolean istfeststoff) { | |
64 this.stationid = stationid; | |
65 this.gewaesser = gewaesser; | |
66 this.km = km; | |
67 this.name = name; | |
68 this.uferistlinks = uferistlinks; | |
69 this.istfeststoff = istfeststoff; | |
70 } | |
71 public Station(long stationid, Bezugspegel bezugspegel, Gewaesser gewaesser, BigDecimal km, String name, boolean uferistlinks, BigDecimal teilVon, BigDecimal teilBis, BigDecimal abstHmst, BigDecimal LHochwert, BigDecimal LRechwert, BigDecimal LNn, BigDecimal RHochwert, BigDecimal RRechwert, BigDecimal RNn, String bemerkung, Long oldmstid, boolean istfeststoff, Set<Sohltest> sohltests, Set<Hpeilung> hpeilungs, Set<Mpeilung> mpeilungs, Set<Messung> messungs) { | |
72 this.stationid = stationid; | |
73 this.bezugspegel = bezugspegel; | |
74 this.gewaesser = gewaesser; | |
75 this.km = km; | |
76 this.name = name; | |
77 this.uferistlinks = uferistlinks; | |
78 this.teilVon = teilVon; | |
79 this.teilBis = teilBis; | |
80 this.abstHmst = abstHmst; | |
81 this.LHochwert = LHochwert; | |
82 this.LRechwert = LRechwert; | |
83 this.LNn = LNn; | |
84 this.RHochwert = RHochwert; | |
85 this.RRechwert = RRechwert; | |
86 this.RNn = RNn; | |
87 this.bemerkung = bemerkung; | |
88 this.oldmstid = oldmstid; | |
89 this.istfeststoff = istfeststoff; | |
90 this.sohltests = sohltests; | |
91 this.hpeilungs = hpeilungs; | |
92 this.mpeilungs = mpeilungs; | |
93 this.messungs = messungs; | |
94 } | |
95 | |
96 @Id | |
97 | |
98 | |
99 @Column(name="STATIONID", unique=true, nullable=false, precision=11, scale=0) | |
100 public long getStationid() { | |
101 return this.stationid; | |
102 } | |
103 | |
104 public void setStationid(long stationid) { | |
105 this.stationid = stationid; | |
106 } | |
107 | |
108 @ManyToOne(fetch=FetchType.LAZY) | |
109 @JoinColumn(name="BEZUGSPEGELID") | |
110 public Bezugspegel getBezugspegel() { | |
111 return this.bezugspegel; | |
112 } | |
113 | |
114 public void setBezugspegel(Bezugspegel bezugspegel) { | |
115 this.bezugspegel = bezugspegel; | |
116 } | |
117 | |
118 @ManyToOne(fetch=FetchType.LAZY) | |
119 @JoinColumn(name="GEWAESSERID", nullable=false) | |
120 public Gewaesser getGewaesser() { | |
121 return this.gewaesser; | |
122 } | |
123 | |
124 public void setGewaesser(Gewaesser gewaesser) { | |
125 this.gewaesser = gewaesser; | |
126 } | |
127 | |
128 | |
129 @Column(name="KM", nullable=false, precision=8, scale=3) | |
130 public BigDecimal getKm() { | |
131 return this.km; | |
132 } | |
133 | |
134 public void setKm(BigDecimal km) { | |
135 this.km = km; | |
136 } | |
137 | |
138 | |
139 @Column(name="NAME", nullable=false, length=50) | |
140 public String getName() { | |
141 return this.name; | |
142 } | |
143 | |
144 public void setName(String name) { | |
145 this.name = name; | |
146 } | |
147 | |
148 | |
149 @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0) | |
150 public boolean isUferistlinks() { | |
151 return this.uferistlinks; | |
152 } | |
153 | |
154 public void setUferistlinks(boolean uferistlinks) { | |
155 this.uferistlinks = uferistlinks; | |
156 } | |
157 | |
158 | |
159 @Column(name="TEIL_VON", precision=8, scale=3) | |
160 public BigDecimal getTeilVon() { | |
161 return this.teilVon; | |
162 } | |
163 | |
164 public void setTeilVon(BigDecimal teilVon) { | |
165 this.teilVon = teilVon; | |
166 } | |
167 | |
168 | |
169 @Column(name="TEIL_BIS", precision=8, scale=3) | |
170 public BigDecimal getTeilBis() { | |
171 return this.teilBis; | |
172 } | |
173 | |
174 public void setTeilBis(BigDecimal teilBis) { | |
175 this.teilBis = teilBis; | |
176 } | |
177 | |
178 | |
179 @Column(name="ABST_HMST", precision=8, scale=3) | |
180 public BigDecimal getAbstHmst() { | |
181 return this.abstHmst; | |
182 } | |
183 | |
184 public void setAbstHmst(BigDecimal abstHmst) { | |
185 this.abstHmst = abstHmst; | |
186 } | |
187 | |
188 | |
189 @Column(name="L_HOCHWERT", precision=11, scale=3) | |
190 public BigDecimal getLHochwert() { | |
191 return this.LHochwert; | |
192 } | |
193 | |
194 public void setLHochwert(BigDecimal LHochwert) { | |
195 this.LHochwert = LHochwert; | |
196 } | |
197 | |
198 | |
199 @Column(name="L_RECHWERT", precision=11, scale=3) | |
200 public BigDecimal getLRechwert() { | |
201 return this.LRechwert; | |
202 } | |
203 | |
204 public void setLRechwert(BigDecimal LRechwert) { | |
205 this.LRechwert = LRechwert; | |
206 } | |
207 | |
208 | |
209 @Column(name="L_NN", precision=8, scale=3) | |
210 public BigDecimal getLNn() { | |
211 return this.LNn; | |
212 } | |
213 | |
214 public void setLNn(BigDecimal LNn) { | |
215 this.LNn = LNn; | |
216 } | |
217 | |
218 | |
219 @Column(name="R_HOCHWERT", precision=11, scale=3) | |
220 public BigDecimal getRHochwert() { | |
221 return this.RHochwert; | |
222 } | |
223 | |
224 public void setRHochwert(BigDecimal RHochwert) { | |
225 this.RHochwert = RHochwert; | |
226 } | |
227 | |
228 | |
229 @Column(name="R_RECHWERT", precision=11, scale=3) | |
230 public BigDecimal getRRechwert() { | |
231 return this.RRechwert; | |
232 } | |
233 | |
234 public void setRRechwert(BigDecimal RRechwert) { | |
235 this.RRechwert = RRechwert; | |
236 } | |
237 | |
238 | |
239 @Column(name="R_NN", precision=8, scale=3) | |
240 public BigDecimal getRNn() { | |
241 return this.RNn; | |
242 } | |
243 | |
244 public void setRNn(BigDecimal RNn) { | |
245 this.RNn = RNn; | |
246 } | |
247 | |
248 | |
249 @Column(name="BEMERKUNG", length=240) | |
250 public String getBemerkung() { | |
251 return this.bemerkung; | |
252 } | |
253 | |
254 public void setBemerkung(String bemerkung) { | |
255 this.bemerkung = bemerkung; | |
256 } | |
257 | |
258 | |
259 @Column(name="OLDMSTID", precision=11, scale=0) | |
260 public Long getOldmstid() { | |
261 return this.oldmstid; | |
262 } | |
263 | |
264 public void setOldmstid(Long oldmstid) { | |
265 this.oldmstid = oldmstid; | |
266 } | |
267 | |
268 | |
269 @Column(name="ISTFESTSTOFF", nullable=false, precision=1, scale=0) | |
270 public boolean isIstfeststoff() { | |
271 return this.istfeststoff; | |
272 } | |
273 | |
274 public void setIstfeststoff(boolean istfeststoff) { | |
275 this.istfeststoff = istfeststoff; | |
276 } | |
277 | |
278 @OneToMany(fetch=FetchType.LAZY, mappedBy="station") | |
279 public Set<Sohltest> getSohltests() { | |
280 return this.sohltests; | |
281 } | |
282 | |
283 public void setSohltests(Set<Sohltest> sohltests) { | |
284 this.sohltests = sohltests; | |
285 } | |
286 | |
287 @OneToMany(fetch=FetchType.LAZY, mappedBy="station") | |
288 public Set<Hpeilung> getHpeilungs() { | |
289 return this.hpeilungs; | |
290 } | |
291 | |
292 public void setHpeilungs(Set<Hpeilung> hpeilungs) { | |
293 this.hpeilungs = hpeilungs; | |
294 } | |
295 | |
296 @OneToMany(fetch=FetchType.LAZY, mappedBy="station") | |
297 public Set<Mpeilung> getMpeilungs() { | |
298 return this.mpeilungs; | |
299 } | |
300 | |
301 public void setMpeilungs(Set<Mpeilung> mpeilungs) { | |
302 this.mpeilungs = mpeilungs; | |
303 } | |
304 | |
305 @OneToMany(fetch=FetchType.LAZY, mappedBy="station") | |
306 public Set<Messung> getMessungs() { | |
307 return this.messungs; | |
308 } | |
309 | |
310 public void setMessungs(Set<Messung> messungs) { | |
311 this.messungs = messungs; | |
312 } | |
313 } |