Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/SlotlinksId.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/SlotlinksId.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 * SlotlinksId generated by hbm2java | |
19 */ | |
20 @Embeddable | |
21 public class SlotlinksId implements java.io.Serializable { | |
22 | |
23 | |
24 private long slotrechteid; | |
25 private long messungid; | |
26 private BigDecimal uferabst; | |
27 private BigDecimal tsand; | |
28 private BigDecimal tschweb; | |
29 private BigDecimal fv; | |
30 private BigDecimal vm; | |
31 private BigDecimal tiefe; | |
32 private BigDecimal vsohle; | |
33 private String bemerkung; | |
34 private BigDecimal uferablinks; | |
35 private BigDecimal linksabst; | |
36 | |
37 public SlotlinksId() { | |
38 } | |
39 | |
40 public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst) { | |
41 this.slotrechteid = slotrechteid; | |
42 this.messungid = messungid; | |
43 this.uferabst = uferabst; | |
44 } | |
45 public SlotlinksId(long slotrechteid, long messungid, BigDecimal uferabst, BigDecimal tsand, BigDecimal tschweb, BigDecimal fv, BigDecimal vm, BigDecimal tiefe, BigDecimal vsohle, String bemerkung, BigDecimal uferablinks, BigDecimal linksabst) { | |
46 this.slotrechteid = slotrechteid; | |
47 this.messungid = messungid; | |
48 this.uferabst = uferabst; | |
49 this.tsand = tsand; | |
50 this.tschweb = tschweb; | |
51 this.fv = fv; | |
52 this.vm = vm; | |
53 this.tiefe = tiefe; | |
54 this.vsohle = vsohle; | |
55 this.bemerkung = bemerkung; | |
56 this.uferablinks = uferablinks; | |
57 this.linksabst = linksabst; | |
58 } | |
59 | |
60 | |
61 | |
62 @Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0) | |
63 public long getSlotrechteid() { | |
64 return this.slotrechteid; | |
65 } | |
66 | |
67 public void setSlotrechteid(long slotrechteid) { | |
68 this.slotrechteid = slotrechteid; | |
69 } | |
70 | |
71 | |
72 @Column(name="MESSUNGID", nullable=false, precision=11, scale=0) | |
73 public long getMessungid() { | |
74 return this.messungid; | |
75 } | |
76 | |
77 public void setMessungid(long messungid) { | |
78 this.messungid = messungid; | |
79 } | |
80 | |
81 | |
82 @Column(name="UFERABST", nullable=false, precision=8, scale=3) | |
83 public BigDecimal getUferabst() { | |
84 return this.uferabst; | |
85 } | |
86 | |
87 public void setUferabst(BigDecimal uferabst) { | |
88 this.uferabst = uferabst; | |
89 } | |
90 | |
91 | |
92 @Column(name="TSAND", precision=8, scale=3) | |
93 public BigDecimal getTsand() { | |
94 return this.tsand; | |
95 } | |
96 | |
97 public void setTsand(BigDecimal tsand) { | |
98 this.tsand = tsand; | |
99 } | |
100 | |
101 | |
102 @Column(name="TSCHWEB", precision=8, scale=3) | |
103 public BigDecimal getTschweb() { | |
104 return this.tschweb; | |
105 } | |
106 | |
107 public void setTschweb(BigDecimal tschweb) { | |
108 this.tschweb = tschweb; | |
109 } | |
110 | |
111 | |
112 @Column(name="FV", precision=6, scale=3) | |
113 public BigDecimal getFv() { | |
114 return this.fv; | |
115 } | |
116 | |
117 public void setFv(BigDecimal fv) { | |
118 this.fv = fv; | |
119 } | |
120 | |
121 | |
122 @Column(name="VM", precision=6, scale=4) | |
123 public BigDecimal getVm() { | |
124 return this.vm; | |
125 } | |
126 | |
127 public void setVm(BigDecimal vm) { | |
128 this.vm = vm; | |
129 } | |
130 | |
131 | |
132 @Column(name="TIEFE", precision=8, scale=3) | |
133 public BigDecimal getTiefe() { | |
134 return this.tiefe; | |
135 } | |
136 | |
137 public void setTiefe(BigDecimal tiefe) { | |
138 this.tiefe = tiefe; | |
139 } | |
140 | |
141 | |
142 @Column(name="VSOHLE", precision=6, scale=4) | |
143 public BigDecimal getVsohle() { | |
144 return this.vsohle; | |
145 } | |
146 | |
147 public void setVsohle(BigDecimal vsohle) { | |
148 this.vsohle = vsohle; | |
149 } | |
150 | |
151 | |
152 @Column(name="BEMERKUNG", length=240) | |
153 public String getBemerkung() { | |
154 return this.bemerkung; | |
155 } | |
156 | |
157 public void setBemerkung(String bemerkung) { | |
158 this.bemerkung = bemerkung; | |
159 } | |
160 | |
161 | |
162 @Column(name="UFERABLINKS", precision=8, scale=3) | |
163 public BigDecimal getUferablinks() { | |
164 return this.uferablinks; | |
165 } | |
166 | |
167 public void setUferablinks(BigDecimal uferablinks) { | |
168 this.uferablinks = uferablinks; | |
169 } | |
170 | |
171 | |
172 @Column(name="LINKSABST", precision=22, scale=0) | |
173 public BigDecimal getLinksabst() { | |
174 return this.linksabst; | |
175 } | |
176 | |
177 public void setLinksabst(BigDecimal linksabst) { | |
178 this.linksabst = linksabst; | |
179 } | |
180 | |
181 | |
182 public boolean equals(Object other) { | |
183 if ( (this == other ) ) return true; | |
184 if ( (other == null ) ) return false; | |
185 if ( !(other instanceof SlotlinksId) ) return false; | |
186 SlotlinksId castOther = ( SlotlinksId ) other; | |
187 | |
188 return (this.getSlotrechteid()==castOther.getSlotrechteid()) | |
189 && (this.getMessungid()==castOther.getMessungid()) | |
190 && ( (this.getUferabst()==castOther.getUferabst()) || ( this.getUferabst()!=null && castOther.getUferabst()!=null && this.getUferabst().equals(castOther.getUferabst()) ) ) | |
191 && ( (this.getTsand()==castOther.getTsand()) || ( this.getTsand()!=null && castOther.getTsand()!=null && this.getTsand().equals(castOther.getTsand()) ) ) | |
192 && ( (this.getTschweb()==castOther.getTschweb()) || ( this.getTschweb()!=null && castOther.getTschweb()!=null && this.getTschweb().equals(castOther.getTschweb()) ) ) | |
193 && ( (this.getFv()==castOther.getFv()) || ( this.getFv()!=null && castOther.getFv()!=null && this.getFv().equals(castOther.getFv()) ) ) | |
194 && ( (this.getVm()==castOther.getVm()) || ( this.getVm()!=null && castOther.getVm()!=null && this.getVm().equals(castOther.getVm()) ) ) | |
195 && ( (this.getTiefe()==castOther.getTiefe()) || ( this.getTiefe()!=null && castOther.getTiefe()!=null && this.getTiefe().equals(castOther.getTiefe()) ) ) | |
196 && ( (this.getVsohle()==castOther.getVsohle()) || ( this.getVsohle()!=null && castOther.getVsohle()!=null && this.getVsohle().equals(castOther.getVsohle()) ) ) | |
197 && ( (this.getBemerkung()==castOther.getBemerkung()) || ( this.getBemerkung()!=null && castOther.getBemerkung()!=null && this.getBemerkung().equals(castOther.getBemerkung()) ) ) | |
198 && ( (this.getUferablinks()==castOther.getUferablinks()) || ( this.getUferablinks()!=null && castOther.getUferablinks()!=null && this.getUferablinks().equals(castOther.getUferablinks()) ) ) | |
199 && ( (this.getLinksabst()==castOther.getLinksabst()) || ( this.getLinksabst()!=null && castOther.getLinksabst()!=null && this.getLinksabst().equals(castOther.getLinksabst()) ) ); | |
200 } | |
201 | |
202 public int hashCode() { | |
203 int result = 17; | |
204 | |
205 result = 37 * result + (int) this.getSlotrechteid(); | |
206 result = 37 * result + (int) this.getMessungid(); | |
207 result = 37 * result + ( getUferabst() == null ? 0 : this.getUferabst().hashCode() ); | |
208 result = 37 * result + ( getTsand() == null ? 0 : this.getTsand().hashCode() ); | |
209 result = 37 * result + ( getTschweb() == null ? 0 : this.getTschweb().hashCode() ); | |
210 result = 37 * result + ( getFv() == null ? 0 : this.getFv().hashCode() ); | |
211 result = 37 * result + ( getVm() == null ? 0 : this.getVm().hashCode() ); | |
212 result = 37 * result + ( getTiefe() == null ? 0 : this.getTiefe().hashCode() ); | |
213 result = 37 * result + ( getVsohle() == null ? 0 : this.getVsohle().hashCode() ); | |
214 result = 37 * result + ( getBemerkung() == null ? 0 : this.getBemerkung().hashCode() ); | |
215 result = 37 * result + ( getUferablinks() == null ? 0 : this.getUferablinks().hashCode() ); | |
216 result = 37 * result + ( getLinksabst() == null ? 0 : this.getLinksabst().hashCode() ); | |
217 return result; | |
218 } | |
219 } |