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