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

http://dive4elements.wald.intevation.org