Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/GprobeId.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 javax.persistence.Column; | |
6 import javax.persistence.Embeddable; | |
7 | |
8 /** | |
9 * GprobeId generated by hbm2java | |
10 */ | |
11 @Embeddable | |
12 public class GprobeId implements java.io.Serializable { | |
13 | |
14 | |
15 private long glotrechteid; | |
16 private int lfdnr; | |
17 | |
18 public GprobeId() { | |
19 } | |
20 | |
21 public GprobeId(long glotrechteid, int lfdnr) { | |
22 this.glotrechteid = glotrechteid; | |
23 this.lfdnr = lfdnr; | |
24 } | |
25 | |
26 | |
27 | |
28 @Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0) | |
29 public long getGlotrechteid() { | |
30 return this.glotrechteid; | |
31 } | |
32 | |
33 public void setGlotrechteid(long glotrechteid) { | |
34 this.glotrechteid = glotrechteid; | |
35 } | |
36 | |
37 | |
38 @Column(name="LFDNR", nullable=false, precision=5, scale=0) | |
39 public int getLfdnr() { | |
40 return this.lfdnr; | |
41 } | |
42 | |
43 public void setLfdnr(int lfdnr) { | |
44 this.lfdnr = lfdnr; | |
45 } | |
46 | |
47 | |
48 public boolean equals(Object other) { | |
49 if ( (this == other ) ) return true; | |
50 if ( (other == null ) ) return false; | |
51 if ( !(other instanceof GprobeId) ) return false; | |
52 GprobeId castOther = ( GprobeId ) other; | |
53 | |
54 return (this.getGlotrechteid()==castOther.getGlotrechteid()) | |
55 && (this.getLfdnr()==castOther.getLfdnr()); | |
56 } | |
57 | |
58 public int hashCode() { | |
59 int result = 17; | |
60 | |
61 result = 37 * result + (int) this.getGlotrechteid(); | |
62 result = 37 * result + this.getLfdnr(); | |
63 return result; | |
64 } | |
65 } |