comparison flys-backend/src/main/java/de/intevation/seddb/model/MessunguferbezugId.java @ 3334:2ae732e2c65c

FLYS backend: Removed trailing whitespace. flys-backend/trunk@4669 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Jun 2012 09:20:49 +0000
parents aa8ed778c8cc
children 18619c1e7c2a
comparison
equal deleted inserted replaced
3333:76c75c8b9ee0 3334:2ae732e2c65c
27 public MessunguferbezugId(long messungid, boolean uferistlinks, BigDecimal hmabst) { 27 public MessunguferbezugId(long messungid, boolean uferistlinks, BigDecimal hmabst) {
28 this.messungid = messungid; 28 this.messungid = messungid;
29 this.uferistlinks = uferistlinks; 29 this.uferistlinks = uferistlinks;
30 this.hmabst = hmabst; 30 this.hmabst = hmabst;
31 } 31 }
32 32
33 33
34 34
35 @Column(name="MESSUNGID", nullable=false, precision=11, scale=0) 35 @Column(name="MESSUNGID", nullable=false, precision=11, scale=0)
36 public long getMessungid() { 36 public long getMessungid() {
37 return this.messungid; 37 return this.messungid;
38 } 38 }
39 39
40 public void setMessungid(long messungid) { 40 public void setMessungid(long messungid) {
41 this.messungid = messungid; 41 this.messungid = messungid;
42 } 42 }
43 43
44 44
45 @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0) 45 @Column(name="UFERISTLINKS", nullable=false, precision=1, scale=0)
46 public boolean isUferistlinks() { 46 public boolean isUferistlinks() {
47 return this.uferistlinks; 47 return this.uferistlinks;
48 } 48 }
49 49
50 public void setUferistlinks(boolean uferistlinks) { 50 public void setUferistlinks(boolean uferistlinks) {
51 this.uferistlinks = uferistlinks; 51 this.uferistlinks = uferistlinks;
52 } 52 }
53 53
54 54
55 @Column(name="HMABST", precision=8, scale=3) 55 @Column(name="HMABST", precision=8, scale=3)
56 public BigDecimal getHmabst() { 56 public BigDecimal getHmabst() {
57 return this.hmabst; 57 return this.hmabst;
58 } 58 }
59 59
60 public void setHmabst(BigDecimal hmabst) { 60 public void setHmabst(BigDecimal hmabst) {
61 this.hmabst = hmabst; 61 this.hmabst = hmabst;
62 } 62 }
63 63
64 64
65 public boolean equals(Object other) { 65 public boolean equals(Object other) {
66 if ( (this == other ) ) return true; 66 if ( (this == other ) ) return true;
67 if ( (other == null ) ) return false; 67 if ( (other == null ) ) return false;
68 if ( !(other instanceof MessunguferbezugId) ) return false; 68 if ( !(other instanceof MessunguferbezugId) ) return false;
69 MessunguferbezugId castOther = ( MessunguferbezugId ) other; 69 MessunguferbezugId castOther = ( MessunguferbezugId ) other;
70 70
71 return (this.getMessungid()==castOther.getMessungid()) 71 return (this.getMessungid()==castOther.getMessungid())
72 && (this.isUferistlinks()==castOther.isUferistlinks()) 72 && (this.isUferistlinks()==castOther.isUferistlinks())
73 && ( (this.getHmabst()==castOther.getHmabst()) || ( this.getHmabst()!=null && castOther.getHmabst()!=null && this.getHmabst().equals(castOther.getHmabst()) ) ); 73 && ( (this.getHmabst()==castOther.getHmabst()) || ( this.getHmabst()!=null && castOther.getHmabst()!=null && this.getHmabst().equals(castOther.getHmabst()) ) );
74 } 74 }
75 75
76 public int hashCode() { 76 public int hashCode() {
77 int result = 17; 77 int result = 17;
78 78
79 result = 37 * result + (int) this.getMessungid(); 79 result = 37 * result + (int) this.getMessungid();
80 result = 37 * result + (this.isUferistlinks()?1:0); 80 result = 37 * result + (this.isUferistlinks()?1:0);
81 result = 37 * result + ( getHmabst() == null ? 0 : this.getHmabst().hashCode() ); 81 result = 37 * result + ( getHmabst() == null ? 0 : this.getHmabst().hashCode() );
82 return result; 82 return result;
83 } 83 }
84 } 84 }

http://dive4elements.wald.intevation.org