comparison backend/src/main/java/org/dive4elements/river/seddb/model/BezugspegelgewId.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/BezugspegelgewId.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 javax.persistence.Column;
16 import javax.persistence.Embeddable;
17
18 /**
19 * BezugspegelgewId generated by hbm2java
20 */
21 @Embeddable
22 public class BezugspegelgewId implements java.io.Serializable {
23
24
25 private long bezugspegelid;
26 private long gewaesserid;
27 private BigDecimal km;
28 private String name;
29 private BigDecimal nullpunkt;
30 private String kennung;
31 private BigDecimal einzugsgebiet;
32 private Date inbetrieb;
33 private String fliesscharakter;
34 private BigDecimal laufentwicklung;
35 private BigDecimal mnq;
36 private BigDecimal mq;
37 private BigDecimal mhq;
38 private BigDecimal nnq;
39 private BigDecimal hhq;
40 private Date nnqdatum;
41 private Date hhqdatum;
42 private String jahresreihe;
43 private String bemerkung;
44 private String gewname;
45
46 public BezugspegelgewId() {
47 }
48
49 public BezugspegelgewId(long bezugspegelid, long gewaesserid, BigDecimal km, String name, BigDecimal nullpunkt, String gewname) {
50 this.bezugspegelid = bezugspegelid;
51 this.gewaesserid = gewaesserid;
52 this.km = km;
53 this.name = name;
54 this.nullpunkt = nullpunkt;
55 this.gewname = gewname;
56 }
57 public BezugspegelgewId(long bezugspegelid, long gewaesserid, 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, String gewname) {
58 this.bezugspegelid = bezugspegelid;
59 this.gewaesserid = gewaesserid;
60 this.km = km;
61 this.name = name;
62 this.nullpunkt = nullpunkt;
63 this.kennung = kennung;
64 this.einzugsgebiet = einzugsgebiet;
65 this.inbetrieb = inbetrieb;
66 this.fliesscharakter = fliesscharakter;
67 this.laufentwicklung = laufentwicklung;
68 this.mnq = mnq;
69 this.mq = mq;
70 this.mhq = mhq;
71 this.nnq = nnq;
72 this.hhq = hhq;
73 this.nnqdatum = nnqdatum;
74 this.hhqdatum = hhqdatum;
75 this.jahresreihe = jahresreihe;
76 this.bemerkung = bemerkung;
77 this.gewname = gewname;
78 }
79
80
81
82 @Column(name="BEZUGSPEGELID", nullable=false, precision=11, scale=0)
83 public long getBezugspegelid() {
84 return this.bezugspegelid;
85 }
86
87 public void setBezugspegelid(long bezugspegelid) {
88 this.bezugspegelid = bezugspegelid;
89 }
90
91
92 @Column(name="GEWAESSERID", nullable=false, precision=11, scale=0)
93 public long getGewaesserid() {
94 return this.gewaesserid;
95 }
96
97 public void setGewaesserid(long gewaesserid) {
98 this.gewaesserid = gewaesserid;
99 }
100
101
102 @Column(name="KM", nullable=false, precision=8, scale=3)
103 public BigDecimal getKm() {
104 return this.km;
105 }
106
107 public void setKm(BigDecimal km) {
108 this.km = km;
109 }
110
111
112 @Column(name="NAME", nullable=false, length=50)
113 public String getName() {
114 return this.name;
115 }
116
117 public void setName(String name) {
118 this.name = name;
119 }
120
121
122 @Column(name="NULLPUNKT", nullable=false, precision=8, scale=3)
123 public BigDecimal getNullpunkt() {
124 return this.nullpunkt;
125 }
126
127 public void setNullpunkt(BigDecimal nullpunkt) {
128 this.nullpunkt = nullpunkt;
129 }
130
131
132 @Column(name="KENNUNG", length=16)
133 public String getKennung() {
134 return this.kennung;
135 }
136
137 public void setKennung(String kennung) {
138 this.kennung = kennung;
139 }
140
141
142 @Column(name="EINZUGSGEBIET", precision=10)
143 public BigDecimal getEinzugsgebiet() {
144 return this.einzugsgebiet;
145 }
146
147 public void setEinzugsgebiet(BigDecimal einzugsgebiet) {
148 this.einzugsgebiet = einzugsgebiet;
149 }
150
151
152 @Column(name="INBETRIEB", length=7)
153 public Date getInbetrieb() {
154 return this.inbetrieb;
155 }
156
157 public void setInbetrieb(Date inbetrieb) {
158 this.inbetrieb = inbetrieb;
159 }
160
161
162 @Column(name="FLIESSCHARAKTER", length=3)
163 public String getFliesscharakter() {
164 return this.fliesscharakter;
165 }
166
167 public void setFliesscharakter(String fliesscharakter) {
168 this.fliesscharakter = fliesscharakter;
169 }
170
171
172 @Column(name="LAUFENTWICKLUNG", precision=7, scale=3)
173 public BigDecimal getLaufentwicklung() {
174 return this.laufentwicklung;
175 }
176
177 public void setLaufentwicklung(BigDecimal laufentwicklung) {
178 this.laufentwicklung = laufentwicklung;
179 }
180
181
182 @Column(name="MNQ", precision=8, scale=3)
183 public BigDecimal getMnq() {
184 return this.mnq;
185 }
186
187 public void setMnq(BigDecimal mnq) {
188 this.mnq = mnq;
189 }
190
191
192 @Column(name="MQ", precision=8, scale=3)
193 public BigDecimal getMq() {
194 return this.mq;
195 }
196
197 public void setMq(BigDecimal mq) {
198 this.mq = mq;
199 }
200
201
202 @Column(name="MHQ", precision=8, scale=3)
203 public BigDecimal getMhq() {
204 return this.mhq;
205 }
206
207 public void setMhq(BigDecimal mhq) {
208 this.mhq = mhq;
209 }
210
211
212 @Column(name="NNQ", precision=8, scale=3)
213 public BigDecimal getNnq() {
214 return this.nnq;
215 }
216
217 public void setNnq(BigDecimal nnq) {
218 this.nnq = nnq;
219 }
220
221
222 @Column(name="HHQ", precision=8, scale=3)
223 public BigDecimal getHhq() {
224 return this.hhq;
225 }
226
227 public void setHhq(BigDecimal hhq) {
228 this.hhq = hhq;
229 }
230
231
232 @Column(name="NNQDATUM", length=7)
233 public Date getNnqdatum() {
234 return this.nnqdatum;
235 }
236
237 public void setNnqdatum(Date nnqdatum) {
238 this.nnqdatum = nnqdatum;
239 }
240
241
242 @Column(name="HHQDATUM", length=7)
243 public Date getHhqdatum() {
244 return this.hhqdatum;
245 }
246
247 public void setHhqdatum(Date hhqdatum) {
248 this.hhqdatum = hhqdatum;
249 }
250
251
252 @Column(name="JAHRESREIHE", length=12)
253 public String getJahresreihe() {
254 return this.jahresreihe;
255 }
256
257 public void setJahresreihe(String jahresreihe) {
258 this.jahresreihe = jahresreihe;
259 }
260
261
262 @Column(name="BEMERKUNG", length=240)
263 public String getBemerkung() {
264 return this.bemerkung;
265 }
266
267 public void setBemerkung(String bemerkung) {
268 this.bemerkung = bemerkung;
269 }
270
271
272 @Column(name="GEWNAME", nullable=false, length=20)
273 public String getGewname() {
274 return this.gewname;
275 }
276
277 public void setGewname(String gewname) {
278 this.gewname = gewname;
279 }
280
281
282 public boolean equals(Object other) {
283 if ( (this == other ) ) return true;
284 if ( (other == null ) ) return false;
285 if ( !(other instanceof BezugspegelgewId) ) return false;
286 BezugspegelgewId castOther = ( BezugspegelgewId ) other;
287
288 return (this.getBezugspegelid()==castOther.getBezugspegelid())
289 && (this.getGewaesserid()==castOther.getGewaesserid())
290 && ( (this.getKm()==castOther.getKm()) || ( this.getKm()!=null && castOther.getKm()!=null && this.getKm().equals(castOther.getKm()) ) )
291 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) )
292 && ( (this.getNullpunkt()==castOther.getNullpunkt()) || ( this.getNullpunkt()!=null && castOther.getNullpunkt()!=null && this.getNullpunkt().equals(castOther.getNullpunkt()) ) )
293 && ( (this.getKennung()==castOther.getKennung()) || ( this.getKennung()!=null && castOther.getKennung()!=null && this.getKennung().equals(castOther.getKennung()) ) )
294 && ( (this.getEinzugsgebiet()==castOther.getEinzugsgebiet()) || ( this.getEinzugsgebiet()!=null && castOther.getEinzugsgebiet()!=null && this.getEinzugsgebiet().equals(castOther.getEinzugsgebiet()) ) )
295 && ( (this.getInbetrieb()==castOther.getInbetrieb()) || ( this.getInbetrieb()!=null && castOther.getInbetrieb()!=null && this.getInbetrieb().equals(castOther.getInbetrieb()) ) )
296 && ( (this.getFliesscharakter()==castOther.getFliesscharakter()) || ( this.getFliesscharakter()!=null && castOther.getFliesscharakter()!=null && this.getFliesscharakter().equals(castOther.getFliesscharakter()) ) )
297 && ( (this.getLaufentwicklung()==castOther.getLaufentwicklung()) || ( this.getLaufentwicklung()!=null && castOther.getLaufentwicklung()!=null && this.getLaufentwicklung().equals(castOther.getLaufentwicklung()) ) )
298 && ( (this.getMnq()==castOther.getMnq()) || ( this.getMnq()!=null && castOther.getMnq()!=null && this.getMnq().equals(castOther.getMnq()) ) )
299 && ( (this.getMq()==castOther.getMq()) || ( this.getMq()!=null && castOther.getMq()!=null && this.getMq().equals(castOther.getMq()) ) )
300 && ( (this.getMhq()==castOther.getMhq()) || ( this.getMhq()!=null && castOther.getMhq()!=null && this.getMhq().equals(castOther.getMhq()) ) )
301 && ( (this.getNnq()==castOther.getNnq()) || ( this.getNnq()!=null && castOther.getNnq()!=null && this.getNnq().equals(castOther.getNnq()) ) )
302 && ( (this.getHhq()==castOther.getHhq()) || ( this.getHhq()!=null && castOther.getHhq()!=null && this.getHhq().equals(castOther.getHhq()) ) )
303 && ( (this.getNnqdatum()==castOther.getNnqdatum()) || ( this.getNnqdatum()!=null && castOther.getNnqdatum()!=null && this.getNnqdatum().equals(castOther.getNnqdatum()) ) )
304 && ( (this.getHhqdatum()==castOther.getHhqdatum()) || ( this.getHhqdatum()!=null && castOther.getHhqdatum()!=null && this.getHhqdatum().equals(castOther.getHhqdatum()) ) )
305 && ( (this.getJahresreihe()==castOther.getJahresreihe()) || ( this.getJahresreihe()!=null && castOther.getJahresreihe()!=null && this.getJahresreihe().equals(castOther.getJahresreihe()) ) )
306 && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) )
307 && ( (this.getGewname()==castOther.getGewname()) || ( this.getGewname()!=null && castOther.getGewname()!=null && this.getGewname().equals(castOther.getGewname()) ) );
308 }
309
310 public int hashCode() {
311 int result = 17;
312
313 result = 37 * result + (int) this.getBezugspegelid();
314 result = 37 * result + (int) this.getGewaesserid();
315 result = 37 * result + ( getKm() == null ? 0 : this.getKm().hashCode() );
316 result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
317 result = 37 * result + ( getNullpunkt() == null ? 0 : this.getNullpunkt().hashCode() );
318 result = 37 * result + ( getKennung() == null ? 0 : this.getKennung().hashCode() );
319 result = 37 * result + ( getEinzugsgebiet() == null ? 0 : this.getEinzugsgebiet().hashCode() );
320 result = 37 * result + ( getInbetrieb() == null ? 0 : this.getInbetrieb().hashCode() );
321 result = 37 * result + ( getFliesscharakter() == null ? 0 : this.getFliesscharakter().hashCode() );
322 result = 37 * result + ( getLaufentwicklung() == null ? 0 : this.getLaufentwicklung().hashCode() );
323 result = 37 * result + ( getMnq() == null ? 0 : this.getMnq().hashCode() );
324 result = 37 * result + ( getMq() == null ? 0 : this.getMq().hashCode() );
325 result = 37 * result + ( getMhq() == null ? 0 : this.getMhq().hashCode() );
326 result = 37 * result + ( getNnq() == null ? 0 : this.getNnq().hashCode() );
327 result = 37 * result + ( getHhq() == null ? 0 : this.getHhq().hashCode() );
328 result = 37 * result + ( getNnqdatum() == null ? 0 : this.getNnqdatum().hashCode() );
329 result = 37 * result + ( getHhqdatum() == null ? 0 : this.getHhqdatum().hashCode() );
330 result = 37 * result + ( getJahresreihe() == null ? 0 : this.getJahresreihe().hashCode() );
331 result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() );
332 result = 37 * result + ( getGewname() == null ? 0 : this.getGewname().hashCode() );
333 return result;
334 }
335 }

http://dive4elements.wald.intevation.org