Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/seddb/model/MpeilpunktId.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 |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/seddb/model/MpeilpunktId.java Thu Jun 14 15:39:42 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/seddb/model/MpeilpunktId.java Fri Jun 15 09:20:49 2012 +0000 @@ -22,14 +22,14 @@ this.mpeilungid = mpeilungid; this.punktnr = punktnr; } - + @Column(name="MPEILUNGID", nullable=false, precision=11, scale=0) public long getMpeilungid() { return this.mpeilungid; } - + public void setMpeilungid(long mpeilungid) { this.mpeilungid = mpeilungid; } @@ -39,7 +39,7 @@ public int getPunktnr() { return this.punktnr; } - + public void setPunktnr(int punktnr) { this.punktnr = punktnr; } @@ -49,17 +49,17 @@ if ( (this == other ) ) return true; if ( (other == null ) ) return false; if ( !(other instanceof MpeilpunktId) ) return false; - MpeilpunktId castOther = ( MpeilpunktId ) other; - + MpeilpunktId castOther = ( MpeilpunktId ) other; + return (this.getMpeilungid()==castOther.getMpeilungid()) && (this.getPunktnr()==castOther.getPunktnr()); } - + public int hashCode() { int result = 17; - + result = 37 * result + (int) this.getMpeilungid(); result = 37 * result + this.getPunktnr(); return result; - } + } }