Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/StationgewId.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/StationgewId.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 * StationgewId generated by hbm2java | |
19 */ | |
20 @Embeddable | |
21 public class StationgewId implements java.io.Serializable { | |
22 | |
23 | |
24 private long stationid; | |
25 private long gewaesserid; | |
26 private BigDecimal km; | |
27 private Long bezugspegelid; | |
28 private String name; | |
29 private boolean uferistlinks; | |
30 private BigDecimal teilVon; | |
31 private BigDecimal teilBis; | |
32 private BigDecimal abstHmst; | |
33 private BigDecimal LHochwert; | |
34 private BigDecimal LRechwert; | |
35 private BigDecimal LNn; | |
36 private BigDecimal RHochwert; | |
37 private BigDecimal RRechwert; | |
38 private BigDecimal RNn; | |
39 private String bemerkung; | |
40 private Long oldmstid; | |
41 private boolean istfeststoff; | |
42 private String gewname; | |
43 | |
44 public StationgewId() { | |
45 } | |
46 | |
47 public StationgewId(long stationid, long gewaesserid, BigDecimal km, String name, boolean uferistlinks, boolean istfeststoff, String gewname) { | |
48 this.stationid = stationid; | |
49 this.gewaesserid = gewaesserid; | |
50 this.km = km; | |
51 this.name = name; | |
52 this.uferistlinks = uferistlinks; | |
53 this.istfeststoff = istfeststoff; | |
54 this.gewname = gewname; | |
55 } | |
56 public StationgewId(long stationid, long gewaesserid, BigDecimal km, Long bezugspegelid, String name, boolean uferistlinks, BigDecimal teilVon, BigDecimal teilBis, BigDecimal abstHmst, BigDecimal LHochwert, BigDecimal LRechwert, BigDecimal LNn, BigDecimal RHochwert, BigDecimal RRechwert, BigDecimal RNn, String bemerkung, Long oldmstid, boolean istfeststoff, String gewname) { | |
57 this.stationid = stationid; | |
58 this.gewaesserid = gewaesserid; | |
59 this.km = km; | |
60 this.bezugspegelid = bezugspegelid; | |
61 this.name = name; | |
62 this.uferistlinks = uferistlinks; | |
63 this.teilVon = teilVon; | |
64 this.teilBis = teilBis; | |
65 this.abstHmst = abstHmst; | |
66 this.LHochwert = LHochwert; | |
67 this.LRechwert = LRechwert; | |
68 this.LNn = LNn; | |
69 this.RHochwert = RHochwert; | |
70 this.RRechwert = RRechwert; | |
71 this.RNn = RNn; | |
72 this.bemerkung = bemerkung; | |
73 this.oldmstid = oldmstid; | |
74 this.istfeststoff = istfeststoff; | |
75 this.gewname = gewname; | |
76 } | |
77 | |
78 | |
79 | |
80 @Column(name="STATIONID", nullable=false, precision=11, scale=0) | |
81 public long getStationid() { | |
82 return this.stationid; | |
83 } | |
84 | |
85 public void setStationid(long stationid) { | |
86 this.stationid = stationid; | |
87 } | |
88 | |
89 | |
90 @Column(name="GEWAESSERID", nullable=false, precision=11, scale=0) | |
91 public long getGewaesserid() { | |
92 return this.gewaesserid; | |
93 } | |
94 | |
95 public void setGewaesserid(long gewaesserid) { | |
96 this.gewaesserid = gewaesserid; | |
97 } | |
98 | |
99 | |
100 @Column(name="KM", nullable=false, precision=8, scale=3) | |
101 public BigDecimal getKm() { | |
102 return this.km; | |
103 } | |
104 | |
105 public void setKm(BigDecimal km) { | |
106 this.km = km; | |
107 } | |
108 | |
109 | |
110 @Column(name="BEZUGSPEGELID", precision=11, scale=0) | |
111 public Long getBezugspegelid() { | |
112 return this.bezugspegelid; | |
113 } | |
114 | |
115 public void setBezugspegelid(Long bezugspegelid) { | |
116 this.bezugspegelid = bezugspegelid; | |
117 } | |
118 | |
119 | |
120 @Column(name="NAME", nullable=false, length=50) | |
121 public String getName() { | |
122 return this.name; | |
123 } | |
124 | |
125 public void setName(String name) { | |
126 this.name = name; | |
127 } | |
128 | |
129 | |
130 @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0) | |
131 public boolean isUferistlinks() { | |
132 return this.uferistlinks; | |
133 } | |
134 | |
135 public void setUferistlinks(boolean uferistlinks) { | |
136 this.uferistlinks = uferistlinks; | |
137 } | |
138 | |
139 | |
140 @Column(name="TEIL_VON", precision=8, scale=3) | |
141 public BigDecimal getTeilVon() { | |
142 return this.teilVon; | |
143 } | |
144 | |
145 public void setTeilVon(BigDecimal teilVon) { | |
146 this.teilVon = teilVon; | |
147 } | |
148 | |
149 | |
150 @Column(name="TEIL_BIS", precision=8, scale=3) | |
151 public BigDecimal getTeilBis() { | |
152 return this.teilBis; | |
153 } | |
154 | |
155 public void setTeilBis(BigDecimal teilBis) { | |
156 this.teilBis = teilBis; | |
157 } | |
158 | |
159 | |
160 @Column(name="ABST_HMST", precision=8, scale=3) | |
161 public BigDecimal getAbstHmst() { | |
162 return this.abstHmst; | |
163 } | |
164 | |
165 public void setAbstHmst(BigDecimal abstHmst) { | |
166 this.abstHmst = abstHmst; | |
167 } | |
168 | |
169 | |
170 @Column(name="L_HOCHWERT", precision=11, scale=3) | |
171 public BigDecimal getLHochwert() { | |
172 return this.LHochwert; | |
173 } | |
174 | |
175 public void setLHochwert(BigDecimal LHochwert) { | |
176 this.LHochwert = LHochwert; | |
177 } | |
178 | |
179 | |
180 @Column(name="L_RECHWERT", precision=11, scale=3) | |
181 public BigDecimal getLRechwert() { | |
182 return this.LRechwert; | |
183 } | |
184 | |
185 public void setLRechwert(BigDecimal LRechwert) { | |
186 this.LRechwert = LRechwert; | |
187 } | |
188 | |
189 | |
190 @Column(name="L_NN", precision=8, scale=3) | |
191 public BigDecimal getLNn() { | |
192 return this.LNn; | |
193 } | |
194 | |
195 public void setLNn(BigDecimal LNn) { | |
196 this.LNn = LNn; | |
197 } | |
198 | |
199 | |
200 @Column(name="R_HOCHWERT", precision=11, scale=3) | |
201 public BigDecimal getRHochwert() { | |
202 return this.RHochwert; | |
203 } | |
204 | |
205 public void setRHochwert(BigDecimal RHochwert) { | |
206 this.RHochwert = RHochwert; | |
207 } | |
208 | |
209 | |
210 @Column(name="R_RECHWERT", precision=11, scale=3) | |
211 public BigDecimal getRRechwert() { | |
212 return this.RRechwert; | |
213 } | |
214 | |
215 public void setRRechwert(BigDecimal RRechwert) { | |
216 this.RRechwert = RRechwert; | |
217 } | |
218 | |
219 | |
220 @Column(name="R_NN", precision=8, scale=3) | |
221 public BigDecimal getRNn() { | |
222 return this.RNn; | |
223 } | |
224 | |
225 public void setRNn(BigDecimal RNn) { | |
226 this.RNn = RNn; | |
227 } | |
228 | |
229 | |
230 @Column(name="BEMERKUNG", length=240) | |
231 public String getBemerkung() { | |
232 return this.bemerkung; | |
233 } | |
234 | |
235 public void setBemerkung(String bemerkung) { | |
236 this.bemerkung = bemerkung; | |
237 } | |
238 | |
239 | |
240 @Column(name="OLDMSTID", precision=11, scale=0) | |
241 public Long getOldmstid() { | |
242 return this.oldmstid; | |
243 } | |
244 | |
245 public void setOldmstid(Long oldmstid) { | |
246 this.oldmstid = oldmstid; | |
247 } | |
248 | |
249 | |
250 @Column(name="ISTFESTSTOFF", nullable=false, precision=1, scale=0) | |
251 public boolean isIstfeststoff() { | |
252 return this.istfeststoff; | |
253 } | |
254 | |
255 public void setIstfeststoff(boolean istfeststoff) { | |
256 this.istfeststoff = istfeststoff; | |
257 } | |
258 | |
259 | |
260 @Column(name="GEWNAME", nullable=false, length=20) | |
261 public String getGewname() { | |
262 return this.gewname; | |
263 } | |
264 | |
265 public void setGewname(String gewname) { | |
266 this.gewname = gewname; | |
267 } | |
268 | |
269 | |
270 public boolean equals(Object other) { | |
271 if ( (this == other ) ) return true; | |
272 if ( (other == null ) ) return false; | |
273 if ( !(other instanceof StationgewId) ) return false; | |
274 StationgewId castOther = ( StationgewId ) other; | |
275 | |
276 return (this.getStationid()==castOther.getStationid()) | |
277 && (this.getGewaesserid()==castOther.getGewaesserid()) | |
278 && ( (this.getKm()==castOther.getKm()) || ( this.getKm()!=null && castOther.getKm()!=null && this.getKm().equals(castOther.getKm()) ) ) | |
279 && ( (this.getBezugspegelid()==castOther.getBezugspegelid()) || ( this.getBezugspegelid()!=null && castOther.getBezugspegelid()!=null && this.getBezugspegelid().equals(castOther.getBezugspegelid()) ) ) | |
280 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) ) | |
281 && (this.isUferistlinks()==castOther.isUferistlinks()) | |
282 && ( (this.getTeilVon()==castOther.getTeilVon()) || ( this.getTeilVon()!=null && castOther.getTeilVon()!=null && this.getTeilVon().equals(castOther.getTeilVon()) ) ) | |
283 && ( (this.getTeilBis()==castOther.getTeilBis()) || ( this.getTeilBis()!=null && castOther.getTeilBis()!=null && this.getTeilBis().equals(castOther.getTeilBis()) ) ) | |
284 && ( (this.getAbstHmst()==castOther.getAbstHmst()) || ( this.getAbstHmst()!=null && castOther.getAbstHmst()!=null && this.getAbstHmst().equals(castOther.getAbstHmst()) ) ) | |
285 && ( (this.getLHochwert()==castOther.getLHochwert()) || ( this.getLHochwert()!=null && castOther.getLHochwert()!=null && this.getLHochwert().equals(castOther.getLHochwert()) ) ) | |
286 && ( (this.getLRechwert()==castOther.getLRechwert()) || ( this.getLRechwert()!=null && castOther.getLRechwert()!=null && this.getLRechwert().equals(castOther.getLRechwert()) ) ) | |
287 && ( (this.getLNn()==castOther.getLNn()) || ( this.getLNn()!=null && castOther.getLNn()!=null && this.getLNn().equals(castOther.getLNn()) ) ) | |
288 && ( (this.getRHochwert()==castOther.getRHochwert()) || ( this.getRHochwert()!=null && castOther.getRHochwert()!=null && this.getRHochwert().equals(castOther.getRHochwert()) ) ) | |
289 && ( (this.getRRechwert()==castOther.getRRechwert()) || ( this.getRRechwert()!=null && castOther.getRRechwert()!=null && this.getRRechwert().equals(castOther.getRRechwert()) ) ) | |
290 && ( (this.getRNn()==castOther.getRNn()) || ( this.getRNn()!=null && castOther.getRNn()!=null && this.getRNn().equals(castOther.getRNn()) ) ) | |
291 && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) ) | |
292 && ( (this.getOldmstid()==castOther.getOldmstid()) || ( this.getOldmstid()!=null && castOther.getOldmstid()!=null && this.getOldmstid().equals(castOther.getOldmstid()) ) ) | |
293 && (this.isIstfeststoff()==castOther.isIstfeststoff()) | |
294 && ( (this.getGewname()==castOther.getGewname()) || ( this.getGewname()!=null && castOther.getGewname()!=null && this.getGewname().equals(castOther.getGewname()) ) ); | |
295 } | |
296 | |
297 public int hashCode() { | |
298 int result = 17; | |
299 | |
300 result = 37 * result + (int) this.getStationid(); | |
301 result = 37 * result + (int) this.getGewaesserid(); | |
302 result = 37 * result + ( getKm() == null ? 0 : this.getKm().hashCode() ); | |
303 result = 37 * result + ( getBezugspegelid() == null ? 0 : this.getBezugspegelid().hashCode() ); | |
304 result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() ); | |
305 result = 37 * result + (this.isUferistlinks()?1:0); | |
306 result = 37 * result + ( getTeilVon() == null ? 0 : this.getTeilVon().hashCode() ); | |
307 result = 37 * result + ( getTeilBis() == null ? 0 : this.getTeilBis().hashCode() ); | |
308 result = 37 * result + ( getAbstHmst() == null ? 0 : this.getAbstHmst().hashCode() ); | |
309 result = 37 * result + ( getLHochwert() == null ? 0 : this.getLHochwert().hashCode() ); | |
310 result = 37 * result + ( getLRechwert() == null ? 0 : this.getLRechwert().hashCode() ); | |
311 result = 37 * result + ( getLNn() == null ? 0 : this.getLNn().hashCode() ); | |
312 result = 37 * result + ( getRHochwert() == null ? 0 : this.getRHochwert().hashCode() ); | |
313 result = 37 * result + ( getRRechwert() == null ? 0 : this.getRRechwert().hashCode() ); | |
314 result = 37 * result + ( getRNn() == null ? 0 : this.getRNn().hashCode() ); | |
315 result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() ); | |
316 result = 37 * result + ( getOldmstid() == null ? 0 : this.getOldmstid().hashCode() ); | |
317 result = 37 * result + (this.isIstfeststoff()?1:0); | |
318 result = 37 * result + ( getGewname() == null ? 0 : this.getGewname().hashCode() ); | |
319 return result; | |
320 } | |
321 } |