comparison flys-backend/src/main/java/de/intevation/seddb/model/Station.java @ 3332:aa8ed778c8cc

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

http://dive4elements.wald.intevation.org