comparison backend/src/main/java/org/dive4elements/river/seddb/model/Sohltest.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/Sohltest.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
28 /**
29 * Sohltest generated by hbm2java
30 */
31 @Entity
32 @Table(name="SOHLTEST"
33 ,schema="SEDDB"
34 )
35 public class Sohltest implements java.io.Serializable {
36
37 private long sohltestid;
38 private Station station;
39 private Zzsondierungart zzsondierungart;
40 private Zzarchiv zzarchiv;
41 private Date datum;
42 private boolean istnurjahr;
43 private BigDecimal km;
44 private BigDecimal abstand;
45 private boolean abstistvonlinks;
46 private boolean abstbezug;
47 private BigDecimal abstoffset;
48 private BigDecimal abstlinks;
49 private BigDecimal rechts;
50 private BigDecimal hoch;
51 private BigDecimal hoehe;
52 private String bemerkung;
53 private String sohlebeschreib;
54 private String sondierungbeschreib;
55 private Date lastupdated;
56 private Set<Bild> bilds = new HashSet<Bild>(0);
57 private Set<Sohlprobe> sohlprobes = new HashSet<Sohlprobe>(0);
58
59 public Sohltest() {
60 }
61
62
63 public Sohltest(long sohltestid, Station station, Date datum, boolean istnurjahr, BigDecimal abstand, boolean abstistvonlinks, boolean abstbezug, BigDecimal abstoffset, Date lastupdated) {
64 this.sohltestid = sohltestid;
65 this.station = station;
66 this.datum = datum;
67 this.istnurjahr = istnurjahr;
68 this.abstand = abstand;
69 this.abstistvonlinks = abstistvonlinks;
70 this.abstbezug = abstbezug;
71 this.abstoffset = abstoffset;
72 this.lastupdated = lastupdated;
73 }
74 public Sohltest(long sohltestid, Station station, Zzsondierungart zzsondierungart, Zzarchiv zzarchiv, Date datum, boolean istnurjahr, BigDecimal km, BigDecimal abstand, boolean abstistvonlinks, boolean abstbezug, BigDecimal abstoffset, BigDecimal abstlinks, BigDecimal rechts, BigDecimal hoch, BigDecimal hoehe, String bemerkung, String sohlebeschreib, String sondierungbeschreib, Date lastupdated, Set<Bild> bilds, Set<Sohlprobe> sohlprobes) {
75 this.sohltestid = sohltestid;
76 this.station = station;
77 this.zzsondierungart = zzsondierungart;
78 this.zzarchiv = zzarchiv;
79 this.datum = datum;
80 this.istnurjahr = istnurjahr;
81 this.km = km;
82 this.abstand = abstand;
83 this.abstistvonlinks = abstistvonlinks;
84 this.abstbezug = abstbezug;
85 this.abstoffset = abstoffset;
86 this.abstlinks = abstlinks;
87 this.rechts = rechts;
88 this.hoch = hoch;
89 this.hoehe = hoehe;
90 this.bemerkung = bemerkung;
91 this.sohlebeschreib = sohlebeschreib;
92 this.sondierungbeschreib = sondierungbeschreib;
93 this.lastupdated = lastupdated;
94 this.bilds = bilds;
95 this.sohlprobes = sohlprobes;
96 }
97
98 @Id
99
100
101 @Column(name="SOHLTESTID", unique=true, nullable=false, precision=11, scale=0)
102 public long getSohltestid() {
103 return this.sohltestid;
104 }
105
106 public void setSohltestid(long sohltestid) {
107 this.sohltestid = sohltestid;
108 }
109
110 @ManyToOne(fetch=FetchType.LAZY)
111 @JoinColumn(name="STATIONID", nullable=false)
112 public Station getStation() {
113 return this.station;
114 }
115
116 public void setStation(Station station) {
117 this.station = station;
118 }
119
120 @ManyToOne(fetch=FetchType.LAZY)
121 @JoinColumn(name="SONDIERUNGARTID")
122 public Zzsondierungart getZzsondierungart() {
123 return this.zzsondierungart;
124 }
125
126 public void setZzsondierungart(Zzsondierungart zzsondierungart) {
127 this.zzsondierungart = zzsondierungart;
128 }
129
130 @ManyToOne(fetch=FetchType.LAZY)
131 @JoinColumn(name="ARCHIVID")
132 public Zzarchiv getZzarchiv() {
133 return this.zzarchiv;
134 }
135
136 public void setZzarchiv(Zzarchiv zzarchiv) {
137 this.zzarchiv = zzarchiv;
138 }
139
140 @Temporal(TemporalType.DATE)
141 @Column(name="DATUM", nullable=false, length=7)
142 public Date getDatum() {
143 return this.datum;
144 }
145
146 public void setDatum(Date datum) {
147 this.datum = datum;
148 }
149
150
151 @Column(name="ISTNURJAHR", nullable=false, precision=1, scale=0)
152 public boolean isIstnurjahr() {
153 return this.istnurjahr;
154 }
155
156 public void setIstnurjahr(boolean istnurjahr) {
157 this.istnurjahr = istnurjahr;
158 }
159
160
161 @Column(name="KM", precision=8, scale=3)
162 public BigDecimal getKm() {
163 return this.km;
164 }
165
166 public void setKm(BigDecimal km) {
167 this.km = km;
168 }
169
170
171 @Column(name="ABSTAND", nullable=false, precision=8, scale=3)
172 public BigDecimal getAbstand() {
173 return this.abstand;
174 }
175
176 public void setAbstand(BigDecimal abstand) {
177 this.abstand = abstand;
178 }
179
180
181 @Column(name="ABSTISTVONLINKS", nullable=false, precision=1, scale=0)
182 public boolean isAbstistvonlinks() {
183 return this.abstistvonlinks;
184 }
185
186 public void setAbstistvonlinks(boolean abstistvonlinks) {
187 this.abstistvonlinks = abstistvonlinks;
188 }
189
190
191 @Column(name="ABSTBEZUG", nullable=false, precision=1, scale=0)
192 public boolean isAbstbezug() {
193 return this.abstbezug;
194 }
195
196 public void setAbstbezug(boolean abstbezug) {
197 this.abstbezug = abstbezug;
198 }
199
200
201 @Column(name="ABSTOFFSET", nullable=false, precision=8, scale=3)
202 public BigDecimal getAbstoffset() {
203 return this.abstoffset;
204 }
205
206 public void setAbstoffset(BigDecimal abstoffset) {
207 this.abstoffset = abstoffset;
208 }
209
210
211 @Column(name="ABSTLINKS", precision=8, scale=3)
212 public BigDecimal getAbstlinks() {
213 return this.abstlinks;
214 }
215
216 public void setAbstlinks(BigDecimal abstlinks) {
217 this.abstlinks = abstlinks;
218 }
219
220
221 @Column(name="RECHTS", precision=11, scale=3)
222 public BigDecimal getRechts() {
223 return this.rechts;
224 }
225
226 public void setRechts(BigDecimal rechts) {
227 this.rechts = rechts;
228 }
229
230
231 @Column(name="HOCH", precision=11, scale=3)
232 public BigDecimal getHoch() {
233 return this.hoch;
234 }
235
236 public void setHoch(BigDecimal hoch) {
237 this.hoch = hoch;
238 }
239
240
241 @Column(name="HOEHE", precision=8, scale=3)
242 public BigDecimal getHoehe() {
243 return this.hoehe;
244 }
245
246 public void setHoehe(BigDecimal hoehe) {
247 this.hoehe = hoehe;
248 }
249
250
251 @Column(name="BEMERKUNG", length=240)
252 public String getBemerkung() {
253 return this.bemerkung;
254 }
255
256 public void setBemerkung(String bemerkung) {
257 this.bemerkung = bemerkung;
258 }
259
260
261 @Column(name="SOHLEBESCHREIB", length=1024)
262 public String getSohlebeschreib() {
263 return this.sohlebeschreib;
264 }
265
266 public void setSohlebeschreib(String sohlebeschreib) {
267 this.sohlebeschreib = sohlebeschreib;
268 }
269
270
271 @Column(name="SONDIERUNGBESCHREIB", length=1024)
272 public String getSondierungbeschreib() {
273 return this.sondierungbeschreib;
274 }
275
276 public void setSondierungbeschreib(String sondierungbeschreib) {
277 this.sondierungbeschreib = sondierungbeschreib;
278 }
279
280 @Temporal(TemporalType.DATE)
281 @Column(name="LASTUPDATED", nullable=false, length=7)
282 public Date getLastupdated() {
283 return this.lastupdated;
284 }
285
286 public void setLastupdated(Date lastupdated) {
287 this.lastupdated = lastupdated;
288 }
289
290 @OneToMany(fetch=FetchType.LAZY, mappedBy="sohltest")
291 public Set<Bild> getBilds() {
292 return this.bilds;
293 }
294
295 public void setBilds(Set<Bild> bilds) {
296 this.bilds = bilds;
297 }
298
299 @OneToMany(fetch=FetchType.LAZY, mappedBy="sohltest")
300 public Set<Sohlprobe> getSohlprobes() {
301 return this.sohlprobes;
302 }
303
304 public void setSohlprobes(Set<Sohlprobe> sohlprobes) {
305 this.sohlprobes = sohlprobes;
306 }
307 }

http://dive4elements.wald.intevation.org