Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/seddb/model/MessunglotcountId.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/MessunglotcountId.java Thu Jun 14 15:39:42 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/seddb/model/MessunglotcountId.java Fri Jun 15 09:20:49 2012 +0000 @@ -20,7 +20,7 @@ public MessunglotcountId() { } - + public MessunglotcountId(long messungid) { this.messungid = messungid; } @@ -29,14 +29,14 @@ this.glotcount = glotcount; this.slotcount = slotcount; } - + @Column(name="MESSUNGID", nullable=false, precision=11, scale=0) public long getMessungid() { return this.messungid; } - + public void setMessungid(long messungid) { this.messungid = messungid; } @@ -46,7 +46,7 @@ public BigDecimal getGlotcount() { return this.glotcount; } - + public void setGlotcount(BigDecimal glotcount) { this.glotcount = glotcount; } @@ -56,7 +56,7 @@ public BigDecimal getSlotcount() { return this.slotcount; } - + public void setSlotcount(BigDecimal slotcount) { this.slotcount = slotcount; } @@ -66,19 +66,19 @@ if ( (this == other ) ) return true; if ( (other == null ) ) return false; if ( !(other instanceof MessunglotcountId) ) return false; - MessunglotcountId castOther = ( MessunglotcountId ) other; - + MessunglotcountId castOther = ( MessunglotcountId ) other; + return (this.getMessungid()==castOther.getMessungid()) && ( (this.getGlotcount()==castOther.getGlotcount()) || ( this.getGlotcount()!=null && castOther.getGlotcount()!=null && this.getGlotcount().equals(castOther.getGlotcount()) ) ) && ( (this.getSlotcount()==castOther.getSlotcount()) || ( this.getSlotcount()!=null && castOther.getSlotcount()!=null && this.getSlotcount().equals(castOther.getSlotcount()) ) ); } - + public int hashCode() { int result = 17; - + result = 37 * result + (int) this.getMessungid(); result = 37 * result + ( getGlotcount() == null ? 0 : this.getGlotcount().hashCode() ); result = 37 * result + ( getSlotcount() == null ? 0 : this.getSlotcount().hashCode() ); return result; - } + } }