Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/Bezugspegel.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/Bezugspegel.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.Date; | |
15 import java.util.HashSet; | |
16 import java.util.Set; | |
17 import javax.persistence.Column; | |
18 import javax.persistence.Entity; | |
19 import javax.persistence.FetchType; | |
20 import javax.persistence.Id; | |
21 import javax.persistence.JoinColumn; | |
22 import javax.persistence.ManyToOne; | |
23 import javax.persistence.OneToMany; | |
24 import javax.persistence.Table; | |
25 import javax.persistence.Temporal; | |
26 import javax.persistence.TemporalType; | |
27 import javax.persistence.UniqueConstraint; | |
28 | |
29 /** | |
30 * Bezugspegel generated by hbm2java | |
31 */ | |
32 @Entity | |
33 @Table(name="BEZUGSPEGEL" | |
34 ,schema="SEDDB" | |
35 , uniqueConstraints = @UniqueConstraint(columnNames={"GEWAESSERID", "NAME"}) | |
36 ) | |
37 public class Bezugspegel implements java.io.Serializable { | |
38 | |
39 | |
40 private long bezugspegelid; | |
41 private Gewaesser gewaesser; | |
42 private BigDecimal km; | |
43 private String name; | |
44 private BigDecimal nullpunkt; | |
45 private String kennung; | |
46 private BigDecimal einzugsgebiet; | |
47 private Date inbetrieb; | |
48 private String fliesscharakter; | |
49 private BigDecimal laufentwicklung; | |
50 private BigDecimal mnq; | |
51 private BigDecimal mq; | |
52 private BigDecimal mhq; | |
53 private BigDecimal nnq; | |
54 private BigDecimal hhq; | |
55 private Date nnqdatum; | |
56 private Date hhqdatum; | |
57 private String jahresreihe; | |
58 private String bemerkung; | |
59 private Set<Station> stations = new HashSet<Station>(0); | |
60 | |
61 public Bezugspegel() { | |
62 } | |
63 | |
64 public Bezugspegel(long bezugspegelid, Gewaesser gewaesser, BigDecimal km, String name, BigDecimal nullpunkt) { | |
65 this.bezugspegelid = bezugspegelid; | |
66 this.gewaesser = gewaesser; | |
67 this.km = km; | |
68 this.name = name; | |
69 this.nullpunkt = nullpunkt; | |
70 } | |
71 public Bezugspegel(long bezugspegelid, Gewaesser gewaesser, BigDecimal km, String name, BigDecimal nullpunkt, String kennung, BigDecimal einzugsgebiet, Date inbetrieb, String fliesscharakter, BigDecimal laufentwicklung, BigDecimal mnq, BigDecimal mq, BigDecimal mhq, BigDecimal nnq, BigDecimal hhq, Date nnqdatum, Date hhqdatum, String jahresreihe, String bemerkung, Set<Station> stations) { | |
72 this.bezugspegelid = bezugspegelid; | |
73 this.gewaesser = gewaesser; | |
74 this.km = km; | |
75 this.name = name; | |
76 this.nullpunkt = nullpunkt; | |
77 this.kennung = kennung; | |
78 this.einzugsgebiet = einzugsgebiet; | |
79 this.inbetrieb = inbetrieb; | |
80 this.fliesscharakter = fliesscharakter; | |
81 this.laufentwicklung = laufentwicklung; | |
82 this.mnq = mnq; | |
83 this.mq = mq; | |
84 this.mhq = mhq; | |
85 this.nnq = nnq; | |
86 this.hhq = hhq; | |
87 this.nnqdatum = nnqdatum; | |
88 this.hhqdatum = hhqdatum; | |
89 this.jahresreihe = jahresreihe; | |
90 this.bemerkung = bemerkung; | |
91 this.stations = stations; | |
92 } | |
93 | |
94 @Id | |
95 | |
96 | |
97 @Column(name="BEZUGSPEGELID", unique=true, nullable=false, precision=11, scale=0) | |
98 public long getBezugspegelid() { | |
99 return this.bezugspegelid; | |
100 } | |
101 | |
102 public void setBezugspegelid(long bezugspegelid) { | |
103 this.bezugspegelid = bezugspegelid; | |
104 } | |
105 | |
106 @ManyToOne(fetch=FetchType.LAZY) | |
107 @JoinColumn(name="GEWAESSERID", nullable=false) | |
108 public Gewaesser getGewaesser() { | |
109 return this.gewaesser; | |
110 } | |
111 | |
112 public void setGewaesser(Gewaesser gewaesser) { | |
113 this.gewaesser = gewaesser; | |
114 } | |
115 | |
116 | |
117 @Column(name="KM", nullable=false, precision=8, scale=3) | |
118 public BigDecimal getKm() { | |
119 return this.km; | |
120 } | |
121 | |
122 public void setKm(BigDecimal km) { | |
123 this.km = km; | |
124 } | |
125 | |
126 | |
127 @Column(name="NAME", nullable=false, length=50) | |
128 public String getName() { | |
129 return this.name; | |
130 } | |
131 | |
132 public void setName(String name) { | |
133 this.name = name; | |
134 } | |
135 | |
136 | |
137 @Column(name="NULLPUNKT", nullable=false, precision=8, scale=3) | |
138 public BigDecimal getNullpunkt() { | |
139 return this.nullpunkt; | |
140 } | |
141 | |
142 public void setNullpunkt(BigDecimal nullpunkt) { | |
143 this.nullpunkt = nullpunkt; | |
144 } | |
145 | |
146 | |
147 @Column(name="KENNUNG", length=16) | |
148 public String getKennung() { | |
149 return this.kennung; | |
150 } | |
151 | |
152 public void setKennung(String kennung) { | |
153 this.kennung = kennung; | |
154 } | |
155 | |
156 | |
157 @Column(name="EINZUGSGEBIET", precision=10) | |
158 public BigDecimal getEinzugsgebiet() { | |
159 return this.einzugsgebiet; | |
160 } | |
161 | |
162 public void setEinzugsgebiet(BigDecimal einzugsgebiet) { | |
163 this.einzugsgebiet = einzugsgebiet; | |
164 } | |
165 | |
166 @Temporal(TemporalType.DATE) | |
167 @Column(name="INBETRIEB", length=7) | |
168 public Date getInbetrieb() { | |
169 return this.inbetrieb; | |
170 } | |
171 | |
172 public void setInbetrieb(Date inbetrieb) { | |
173 this.inbetrieb = inbetrieb; | |
174 } | |
175 | |
176 | |
177 @Column(name="FLIESSCHARAKTER", length=3) | |
178 public String getFliesscharakter() { | |
179 return this.fliesscharakter; | |
180 } | |
181 | |
182 public void setFliesscharakter(String fliesscharakter) { | |
183 this.fliesscharakter = fliesscharakter; | |
184 } | |
185 | |
186 | |
187 @Column(name="LAUFENTWICKLUNG", precision=7, scale=3) | |
188 public BigDecimal getLaufentwicklung() { | |
189 return this.laufentwicklung; | |
190 } | |
191 | |
192 public void setLaufentwicklung(BigDecimal laufentwicklung) { | |
193 this.laufentwicklung = laufentwicklung; | |
194 } | |
195 | |
196 | |
197 @Column(name="MNQ", precision=8, scale=3) | |
198 public BigDecimal getMnq() { | |
199 return this.mnq; | |
200 } | |
201 | |
202 public void setMnq(BigDecimal mnq) { | |
203 this.mnq = mnq; | |
204 } | |
205 | |
206 | |
207 @Column(name="MQ", precision=8, scale=3) | |
208 public BigDecimal getMq() { | |
209 return this.mq; | |
210 } | |
211 | |
212 public void setMq(BigDecimal mq) { | |
213 this.mq = mq; | |
214 } | |
215 | |
216 | |
217 @Column(name="MHQ", precision=8, scale=3) | |
218 public BigDecimal getMhq() { | |
219 return this.mhq; | |
220 } | |
221 | |
222 public void setMhq(BigDecimal mhq) { | |
223 this.mhq = mhq; | |
224 } | |
225 | |
226 | |
227 @Column(name="NNQ", precision=8, scale=3) | |
228 public BigDecimal getNnq() { | |
229 return this.nnq; | |
230 } | |
231 | |
232 public void setNnq(BigDecimal nnq) { | |
233 this.nnq = nnq; | |
234 } | |
235 | |
236 | |
237 @Column(name="HHQ", precision=8, scale=3) | |
238 public BigDecimal getHhq() { | |
239 return this.hhq; | |
240 } | |
241 | |
242 public void setHhq(BigDecimal hhq) { | |
243 this.hhq = hhq; | |
244 } | |
245 | |
246 @Temporal(TemporalType.DATE) | |
247 @Column(name="NNQDATUM", length=7) | |
248 public Date getNnqdatum() { | |
249 return this.nnqdatum; | |
250 } | |
251 | |
252 public void setNnqdatum(Date nnqdatum) { | |
253 this.nnqdatum = nnqdatum; | |
254 } | |
255 | |
256 @Temporal(TemporalType.DATE) | |
257 @Column(name="HHQDATUM", length=7) | |
258 public Date getHhqdatum() { | |
259 return this.hhqdatum; | |
260 } | |
261 | |
262 public void setHhqdatum(Date hhqdatum) { | |
263 this.hhqdatum = hhqdatum; | |
264 } | |
265 | |
266 | |
267 @Column(name="JAHRESREIHE", length=12) | |
268 public String getJahresreihe() { | |
269 return this.jahresreihe; | |
270 } | |
271 | |
272 public void setJahresreihe(String jahresreihe) { | |
273 this.jahresreihe = jahresreihe; | |
274 } | |
275 | |
276 | |
277 @Column(name="BEMERKUNG", length=240) | |
278 public String getBemerkung() { | |
279 return this.bemerkung; | |
280 } | |
281 | |
282 public void setBemerkung(String bemerkung) { | |
283 this.bemerkung = bemerkung; | |
284 } | |
285 | |
286 @OneToMany(fetch=FetchType.LAZY, mappedBy="bezugspegel") | |
287 public Set<Station> getStations() { | |
288 return this.stations; | |
289 } | |
290 | |
291 public void setStations(Set<Station> stations) { | |
292 this.stations = stations; | |
293 } | |
294 } |