Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/Gprobe.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/Gprobe.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.AttributeOverride; | |
15 import javax.persistence.AttributeOverrides; | |
16 import javax.persistence.Column; | |
17 import javax.persistence.EmbeddedId; | |
18 import javax.persistence.Entity; | |
19 import javax.persistence.FetchType; | |
20 import javax.persistence.JoinColumn; | |
21 import javax.persistence.ManyToOne; | |
22 import javax.persistence.Table; | |
23 | |
24 /** | |
25 * Gprobe generated by hbm2java | |
26 */ | |
27 @Entity | |
28 @Table(name="GPROBE" | |
29 ,schema="SEDDB" | |
30 ) | |
31 public class Gprobe implements java.io.Serializable { | |
32 | |
33 | |
34 private GprobeId id; | |
35 private Glotrechte glotrechte; | |
36 private int messdauer; | |
37 private BigDecimal menge; | |
38 private BigDecimal gtrieb; | |
39 private BigDecimal faktor; | |
40 private BigDecimal mengeF; | |
41 private BigDecimal gtriebF; | |
42 | |
43 public Gprobe() { | |
44 } | |
45 | |
46 public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge) { | |
47 this.id = id; | |
48 this.glotrechte = glotrechte; | |
49 this.messdauer = messdauer; | |
50 this.menge = menge; | |
51 } | |
52 public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge, BigDecimal gtrieb, BigDecimal faktor, BigDecimal mengeF, BigDecimal gtriebF) { | |
53 this.id = id; | |
54 this.glotrechte = glotrechte; | |
55 this.messdauer = messdauer; | |
56 this.menge = menge; | |
57 this.gtrieb = gtrieb; | |
58 this.faktor = faktor; | |
59 this.mengeF = mengeF; | |
60 this.gtriebF = gtriebF; | |
61 } | |
62 | |
63 @EmbeddedId | |
64 | |
65 | |
66 @AttributeOverrides( { | |
67 @AttributeOverride(name="glotrechteid", column=@Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0) ), | |
68 @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } ) | |
69 public GprobeId getId() { | |
70 return this.id; | |
71 } | |
72 | |
73 public void setId(GprobeId id) { | |
74 this.id = id; | |
75 } | |
76 | |
77 @ManyToOne(fetch=FetchType.LAZY) | |
78 @JoinColumn(name="GLOTRECHTEID", nullable=false, insertable=false, updatable=false) | |
79 public Glotrechte getGlotrechte() { | |
80 return this.glotrechte; | |
81 } | |
82 | |
83 public void setGlotrechte(Glotrechte glotrechte) { | |
84 this.glotrechte = glotrechte; | |
85 } | |
86 | |
87 | |
88 @Column(name="MESSDAUER", nullable=false, precision=5, scale=0) | |
89 public int getMessdauer() { | |
90 return this.messdauer; | |
91 } | |
92 | |
93 public void setMessdauer(int messdauer) { | |
94 this.messdauer = messdauer; | |
95 } | |
96 | |
97 | |
98 @Column(name="MENGE", nullable=false, precision=9, scale=3) | |
99 public BigDecimal getMenge() { | |
100 return this.menge; | |
101 } | |
102 | |
103 public void setMenge(BigDecimal menge) { | |
104 this.menge = menge; | |
105 } | |
106 | |
107 | |
108 @Column(name="GTRIEB", precision=8, scale=3) | |
109 public BigDecimal getGtrieb() { | |
110 return this.gtrieb; | |
111 } | |
112 | |
113 public void setGtrieb(BigDecimal gtrieb) { | |
114 this.gtrieb = gtrieb; | |
115 } | |
116 | |
117 | |
118 @Column(name="FAKTOR", precision=4, scale=3) | |
119 public BigDecimal getFaktor() { | |
120 return this.faktor; | |
121 } | |
122 | |
123 public void setFaktor(BigDecimal faktor) { | |
124 this.faktor = faktor; | |
125 } | |
126 | |
127 | |
128 @Column(name="MENGE_F", precision=9, scale=3) | |
129 public BigDecimal getMengeF() { | |
130 return this.mengeF; | |
131 } | |
132 | |
133 public void setMengeF(BigDecimal mengeF) { | |
134 this.mengeF = mengeF; | |
135 } | |
136 | |
137 | |
138 @Column(name="GTRIEB_F", precision=8, scale=3) | |
139 public BigDecimal getGtriebF() { | |
140 return this.gtriebF; | |
141 } | |
142 | |
143 public void setGtriebF(BigDecimal gtriebF) { | |
144 this.gtriebF = gtriebF; | |
145 } | |
146 } |