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

http://dive4elements.wald.intevation.org