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