comparison backend/src/main/java/org/dive4elements/river/seddb/model/GlotlinksId.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/GlotlinksId.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 javax.persistence.Column;
15 import javax.persistence.Embeddable;
16
17 /**
18 * GlotlinksId generated by hbm2java
19 */
20 @Embeddable
21 public class GlotlinksId implements java.io.Serializable {
22
23
24 private long glotrechteid;
25 private long messungid;
26 private BigDecimal uferabst;
27 private BigDecimal tgeschiebe;
28 private BigDecimal dm;
29 private BigDecimal sk;
30 private BigDecimal so;
31 private BigDecimal u;
32 private BigDecimal d90;
33 private BigDecimal d84;
34 private BigDecimal d80;
35 private BigDecimal d75;
36 private BigDecimal d70;
37 private BigDecimal d60;
38 private BigDecimal d50;
39 private BigDecimal d40;
40 private BigDecimal d30;
41 private BigDecimal d25;
42 private BigDecimal d20;
43 private BigDecimal d16;
44 private BigDecimal d10;
45 private BigDecimal dmin;
46 private BigDecimal durchdmin;
47 private BigDecimal dmax;
48 private BigDecimal durchdmax;
49 private BigDecimal stdabw;
50 private BigDecimal stdfehler;
51 private String bemerkung;
52 private BigDecimal uferablinks;
53 private BigDecimal linksabst;
54
55 public GlotlinksId() {
56 }
57
58
59 public GlotlinksId(long glotrechteid, long messungid, BigDecimal uferabst) {
60 this.glotrechteid = glotrechteid;
61 this.messungid = messungid;
62 this.uferabst = uferabst;
63 }
64 public GlotlinksId(long glotrechteid, long messungid, BigDecimal uferabst, BigDecimal tgeschiebe, BigDecimal dm, BigDecimal sk, BigDecimal so, BigDecimal u, BigDecimal d90, BigDecimal d84, BigDecimal d80, BigDecimal d75, BigDecimal d70, BigDecimal d60, BigDecimal d50, BigDecimal d40, BigDecimal d30, BigDecimal d25, BigDecimal d20, BigDecimal d16, BigDecimal d10, BigDecimal dmin, BigDecimal durchdmin, BigDecimal dmax, BigDecimal durchdmax, BigDecimal stdabw, BigDecimal stdfehler, String bemerkung, BigDecimal uferablinks, BigDecimal linksabst) {
65 this.glotrechteid = glotrechteid;
66 this.messungid = messungid;
67 this.uferabst = uferabst;
68 this.tgeschiebe = tgeschiebe;
69 this.dm = dm;
70 this.sk = sk;
71 this.so = so;
72 this.u = u;
73 this.d90 = d90;
74 this.d84 = d84;
75 this.d80 = d80;
76 this.d75 = d75;
77 this.d70 = d70;
78 this.d60 = d60;
79 this.d50 = d50;
80 this.d40 = d40;
81 this.d30 = d30;
82 this.d25 = d25;
83 this.d20 = d20;
84 this.d16 = d16;
85 this.d10 = d10;
86 this.dmin = dmin;
87 this.durchdmin = durchdmin;
88 this.dmax = dmax;
89 this.durchdmax = durchdmax;
90 this.stdabw = stdabw;
91 this.stdfehler = stdfehler;
92 this.bemerkung = bemerkung;
93 this.uferablinks = uferablinks;
94 this.linksabst = linksabst;
95 }
96
97
98
99 @Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0)
100 public long getGlotrechteid() {
101 return this.glotrechteid;
102 }
103
104 public void setGlotrechteid(long glotrechteid) {
105 this.glotrechteid = glotrechteid;
106 }
107
108
109 @Column(name="MESSUNGID", nullable=false, precision=11, scale=0)
110 public long getMessungid() {
111 return this.messungid;
112 }
113
114 public void setMessungid(long messungid) {
115 this.messungid = messungid;
116 }
117
118
119 @Column(name="UFERABST", nullable=false, precision=8, scale=3)
120 public BigDecimal getUferabst() {
121 return this.uferabst;
122 }
123
124 public void setUferabst(BigDecimal uferabst) {
125 this.uferabst = uferabst;
126 }
127
128
129 @Column(name="TGESCHIEBE", precision=8, scale=3)
130 public BigDecimal getTgeschiebe() {
131 return this.tgeschiebe;
132 }
133
134 public void setTgeschiebe(BigDecimal tgeschiebe) {
135 this.tgeschiebe = tgeschiebe;
136 }
137
138
139 @Column(name="DM", precision=7, scale=4)
140 public BigDecimal getDm() {
141 return this.dm;
142 }
143
144 public void setDm(BigDecimal dm) {
145 this.dm = dm;
146 }
147
148
149 @Column(name="SK", precision=8, scale=3)
150 public BigDecimal getSk() {
151 return this.sk;
152 }
153
154 public void setSk(BigDecimal sk) {
155 this.sk = sk;
156 }
157
158
159 @Column(name="SO", precision=8, scale=3)
160 public BigDecimal getSo() {
161 return this.so;
162 }
163
164 public void setSo(BigDecimal so) {
165 this.so = so;
166 }
167
168
169 @Column(name="U", precision=8, scale=3)
170 public BigDecimal getU() {
171 return this.u;
172 }
173
174 public void setU(BigDecimal u) {
175 this.u = u;
176 }
177
178
179 @Column(name="D90", precision=7, scale=4)
180 public BigDecimal getD90() {
181 return this.d90;
182 }
183
184 public void setD90(BigDecimal d90) {
185 this.d90 = d90;
186 }
187
188
189 @Column(name="D84", precision=7, scale=4)
190 public BigDecimal getD84() {
191 return this.d84;
192 }
193
194 public void setD84(BigDecimal d84) {
195 this.d84 = d84;
196 }
197
198
199 @Column(name="D80", precision=7, scale=4)
200 public BigDecimal getD80() {
201 return this.d80;
202 }
203
204 public void setD80(BigDecimal d80) {
205 this.d80 = d80;
206 }
207
208
209 @Column(name="D75", precision=7, scale=4)
210 public BigDecimal getD75() {
211 return this.d75;
212 }
213
214 public void setD75(BigDecimal d75) {
215 this.d75 = d75;
216 }
217
218
219 @Column(name="D70", precision=7, scale=4)
220 public BigDecimal getD70() {
221 return this.d70;
222 }
223
224 public void setD70(BigDecimal d70) {
225 this.d70 = d70;
226 }
227
228
229 @Column(name="D60", precision=7, scale=4)
230 public BigDecimal getD60() {
231 return this.d60;
232 }
233
234 public void setD60(BigDecimal d60) {
235 this.d60 = d60;
236 }
237
238
239 @Column(name="D50", precision=7, scale=4)
240 public BigDecimal getD50() {
241 return this.d50;
242 }
243
244 public void setD50(BigDecimal d50) {
245 this.d50 = d50;
246 }
247
248
249 @Column(name="D40", precision=7, scale=4)
250 public BigDecimal getD40() {
251 return this.d40;
252 }
253
254 public void setD40(BigDecimal d40) {
255 this.d40 = d40;
256 }
257
258
259 @Column(name="D30", precision=7, scale=4)
260 public BigDecimal getD30() {
261 return this.d30;
262 }
263
264 public void setD30(BigDecimal d30) {
265 this.d30 = d30;
266 }
267
268
269 @Column(name="D25", precision=7, scale=4)
270 public BigDecimal getD25() {
271 return this.d25;
272 }
273
274 public void setD25(BigDecimal d25) {
275 this.d25 = d25;
276 }
277
278
279 @Column(name="D20", precision=7, scale=4)
280 public BigDecimal getD20() {
281 return this.d20;
282 }
283
284 public void setD20(BigDecimal d20) {
285 this.d20 = d20;
286 }
287
288
289 @Column(name="D16", precision=7, scale=4)
290 public BigDecimal getD16() {
291 return this.d16;
292 }
293
294 public void setD16(BigDecimal d16) {
295 this.d16 = d16;
296 }
297
298
299 @Column(name="D10", precision=7, scale=4)
300 public BigDecimal getD10() {
301 return this.d10;
302 }
303
304 public void setD10(BigDecimal d10) {
305 this.d10 = d10;
306 }
307
308
309 @Column(name="DMIN", precision=7, scale=4)
310 public BigDecimal getDmin() {
311 return this.dmin;
312 }
313
314 public void setDmin(BigDecimal dmin) {
315 this.dmin = dmin;
316 }
317
318
319 @Column(name="DURCHDMIN", precision=6, scale=3)
320 public BigDecimal getDurchdmin() {
321 return this.durchdmin;
322 }
323
324 public void setDurchdmin(BigDecimal durchdmin) {
325 this.durchdmin = durchdmin;
326 }
327
328
329 @Column(name="DMAX", precision=7, scale=4)
330 public BigDecimal getDmax() {
331 return this.dmax;
332 }
333
334 public void setDmax(BigDecimal dmax) {
335 this.dmax = dmax;
336 }
337
338
339 @Column(name="DURCHDMAX", precision=6, scale=3)
340 public BigDecimal getDurchdmax() {
341 return this.durchdmax;
342 }
343
344 public void setDurchdmax(BigDecimal durchdmax) {
345 this.durchdmax = durchdmax;
346 }
347
348
349 @Column(name="STDABW", precision=8, scale=3)
350 public BigDecimal getStdabw() {
351 return this.stdabw;
352 }
353
354 public void setStdabw(BigDecimal stdabw) {
355 this.stdabw = stdabw;
356 }
357
358
359 @Column(name="STDFEHLER", precision=8, scale=3)
360 public BigDecimal getStdfehler() {
361 return this.stdfehler;
362 }
363
364 public void setStdfehler(BigDecimal stdfehler) {
365 this.stdfehler = stdfehler;
366 }
367
368
369 @Column(name="BEMERKUNG", length=240)
370 public String getBemerkung() {
371 return this.bemerkung;
372 }
373
374 public void setBemerkung(String bemerkung) {
375 this.bemerkung = bemerkung;
376 }
377
378
379 @Column(name="UFERABLINKS", precision=8, scale=3)
380 public BigDecimal getUferablinks() {
381 return this.uferablinks;
382 }
383
384 public void setUferablinks(BigDecimal uferablinks) {
385 this.uferablinks = uferablinks;
386 }
387
388
389 @Column(name="LINKSABST", precision=22, scale=0)
390 public BigDecimal getLinksabst() {
391 return this.linksabst;
392 }
393
394 public void setLinksabst(BigDecimal linksabst) {
395 this.linksabst = linksabst;
396 }
397
398
399 public boolean equals(Object other) {
400 if ( (this == other ) ) return true;
401 if ( (other == null ) ) return false;
402 if ( !(other instanceof GlotlinksId) ) return false;
403 GlotlinksId castOther = ( GlotlinksId ) other;
404
405 return (this.getGlotrechteid()==castOther.getGlotrechteid())
406 && (this.getMessungid()==castOther.getMessungid())
407 && ( (this.getUferabst()==castOther.getUferabst()) || ( this.getUferabst()!=null && castOther.getUferabst()!=null && this.getUferabst().equals(castOther.getUferabst()) ) )
408 && ( (this.getTgeschiebe()==castOther.getTgeschiebe()) || ( this.getTgeschiebe()!=null && castOther.getTgeschiebe()!=null && this.getTgeschiebe().equals(castOther.getTgeschiebe()) ) )
409 && ( (this.getDm()==castOther.getDm()) || ( this.getDm()!=null && castOther.getDm()!=null && this.getDm().equals(castOther.getDm()) ) )
410 && ( (this.getSk()==castOther.getSk()) || ( this.getSk()!=null && castOther.getSk()!=null && this.getSk().equals(castOther.getSk()) ) )
411 && ( (this.getSo()==castOther.getSo()) || ( this.getSo()!=null && castOther.getSo()!=null && this.getSo().equals(castOther.getSo()) ) )
412 && ( (this.getU()==castOther.getU()) || ( this.getU()!=null && castOther.getU()!=null && this.getU().equals(castOther.getU()) ) )
413 && ( (this.getD90()==castOther.getD90()) || ( this.getD90()!=null && castOther.getD90()!=null && this.getD90().equals(castOther.getD90()) ) )
414 && ( (this.getD84()==castOther.getD84()) || ( this.getD84()!=null && castOther.getD84()!=null && this.getD84().equals(castOther.getD84()) ) )
415 && ( (this.getD80()==castOther.getD80()) || ( this.getD80()!=null && castOther.getD80()!=null && this.getD80().equals(castOther.getD80()) ) )
416 && ( (this.getD75()==castOther.getD75()) || ( this.getD75()!=null && castOther.getD75()!=null && this.getD75().equals(castOther.getD75()) ) )
417 && ( (this.getD70()==castOther.getD70()) || ( this.getD70()!=null && castOther.getD70()!=null && this.getD70().equals(castOther.getD70()) ) )
418 && ( (this.getD60()==castOther.getD60()) || ( this.getD60()!=null && castOther.getD60()!=null && this.getD60().equals(castOther.getD60()) ) )
419 && ( (this.getD50()==castOther.getD50()) || ( this.getD50()!=null && castOther.getD50()!=null && this.getD50().equals(castOther.getD50()) ) )
420 && ( (this.getD40()==castOther.getD40()) || ( this.getD40()!=null && castOther.getD40()!=null && this.getD40().equals(castOther.getD40()) ) )
421 && ( (this.getD30()==castOther.getD30()) || ( this.getD30()!=null && castOther.getD30()!=null && this.getD30().equals(castOther.getD30()) ) )
422 && ( (this.getD25()==castOther.getD25()) || ( this.getD25()!=null && castOther.getD25()!=null && this.getD25().equals(castOther.getD25()) ) )
423 && ( (this.getD20()==castOther.getD20()) || ( this.getD20()!=null && castOther.getD20()!=null && this.getD20().equals(castOther.getD20()) ) )
424 && ( (this.getD16()==castOther.getD16()) || ( this.getD16()!=null && castOther.getD16()!=null && this.getD16().equals(castOther.getD16()) ) )
425 && ( (this.getD10()==castOther.getD10()) || ( this.getD10()!=null && castOther.getD10()!=null && this.getD10().equals(castOther.getD10()) ) )
426 && ( (this.getDmin()==castOther.getDmin()) || ( this.getDmin()!=null && castOther.getDmin()!=null && this.getDmin().equals(castOther.getDmin()) ) )
427 && ( (this.getDurchdmin()==castOther.getDurchdmin()) || ( this.getDurchdmin()!=null && castOther.getDurchdmin()!=null && this.getDurchdmin().equals(castOther.getDurchdmin()) ) )
428 && ( (this.getDmax()==castOther.getDmax()) || ( this.getDmax()!=null && castOther.getDmax()!=null && this.getDmax().equals(castOther.getDmax()) ) )
429 && ( (this.getDurchdmax()==castOther.getDurchdmax()) || ( this.getDurchdmax()!=null && castOther.getDurchdmax()!=null && this.getDurchdmax().equals(castOther.getDurchdmax()) ) )
430 && ( (this.getStdabw()==castOther.getStdabw()) || ( this.getStdabw()!=null && castOther.getStdabw()!=null && this.getStdabw().equals(castOther.getStdabw()) ) )
431 && ( (this.getStdfehler()==castOther.getStdfehler()) || ( this.getStdfehler()!=null && castOther.getStdfehler()!=null && this.getStdfehler().equals(castOther.getStdfehler()) ) )
432 && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) )
433 && ( (this.getUferablinks()==castOther.getUferablinks()) || ( this.getUferablinks()!=null && castOther.getUferablinks()!=null && this.getUferablinks().equals(castOther.getUferablinks()) ) )
434 && ( (this.getLinksabst()==castOther.getLinksabst()) || ( this.getLinksabst()!=null && castOther.getLinksabst()!=null && this.getLinksabst().equals(castOther.getLinksabst()) ) );
435 }
436
437 public int hashCode() {
438 int result = 17;
439
440 result = 37 * result + (int) this.getGlotrechteid();
441 result = 37 * result + (int) this.getMessungid();
442 result = 37 * result + ( getUferabst() == null ? 0 : this.getUferabst().hashCode() );
443 result = 37 * result + ( getTgeschiebe() == null ? 0 : this.getTgeschiebe().hashCode() );
444 result = 37 * result + ( getDm() == null ? 0 : this.getDm().hashCode() );
445 result = 37 * result + ( getSk() == null ? 0 : this.getSk().hashCode() );
446 result = 37 * result + ( getSo() == null ? 0 : this.getSo().hashCode() );
447 result = 37 * result + ( getU() == null ? 0 : this.getU().hashCode() );
448 result = 37 * result + ( getD90() == null ? 0 : this.getD90().hashCode() );
449 result = 37 * result + ( getD84() == null ? 0 : this.getD84().hashCode() );
450 result = 37 * result + ( getD80() == null ? 0 : this.getD80().hashCode() );
451 result = 37 * result + ( getD75() == null ? 0 : this.getD75().hashCode() );
452 result = 37 * result + ( getD70() == null ? 0 : this.getD70().hashCode() );
453 result = 37 * result + ( getD60() == null ? 0 : this.getD60().hashCode() );
454 result = 37 * result + ( getD50() == null ? 0 : this.getD50().hashCode() );
455 result = 37 * result + ( getD40() == null ? 0 : this.getD40().hashCode() );
456 result = 37 * result + ( getD30() == null ? 0 : this.getD30().hashCode() );
457 result = 37 * result + ( getD25() == null ? 0 : this.getD25().hashCode() );
458 result = 37 * result + ( getD20() == null ? 0 : this.getD20().hashCode() );
459 result = 37 * result + ( getD16() == null ? 0 : this.getD16().hashCode() );
460 result = 37 * result + ( getD10() == null ? 0 : this.getD10().hashCode() );
461 result = 37 * result + ( getDmin() == null ? 0 : this.getDmin().hashCode() );
462 result = 37 * result + ( getDurchdmin() == null ? 0 : this.getDurchdmin().hashCode() );
463 result = 37 * result + ( getDmax() == null ? 0 : this.getDmax().hashCode() );
464 result = 37 * result + ( getDurchdmax() == null ? 0 : this.getDurchdmax().hashCode() );
465 result = 37 * result + ( getStdabw() == null ? 0 : this.getStdabw().hashCode() );
466 result = 37 * result + ( getStdfehler() == null ? 0 : this.getStdfehler().hashCode() );
467 result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() );
468 result = 37 * result + ( getUferablinks() == null ? 0 : this.getUferablinks().hashCode() );
469 result = 37 * result + ( getLinksabst() == null ? 0 : this.getLinksabst().hashCode() );
470 return result;
471 }
472 }

http://dive4elements.wald.intevation.org