Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/HpeilpunktId.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 |
---|---|
20 | 20 |
21 public HpeilpunktId(long hpeilungid, int punktnr) { | 21 public HpeilpunktId(long hpeilungid, int punktnr) { |
22 this.hpeilungid = hpeilungid; | 22 this.hpeilungid = hpeilungid; |
23 this.punktnr = punktnr; | 23 this.punktnr = punktnr; |
24 } | 24 } |
25 | 25 |
26 | 26 |
27 | 27 |
28 @Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) | 28 @Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) |
29 public long getHpeilungid() { | 29 public long getHpeilungid() { |
30 return this.hpeilungid; | 30 return this.hpeilungid; |
31 } | 31 } |
32 | 32 |
33 public void setHpeilungid(long hpeilungid) { | 33 public void setHpeilungid(long hpeilungid) { |
34 this.hpeilungid = hpeilungid; | 34 this.hpeilungid = hpeilungid; |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 @Column(name="PUNKTNR", nullable=false, precision=5, scale=0) | 38 @Column(name="PUNKTNR", nullable=false, precision=5, scale=0) |
39 public int getPunktnr() { | 39 public int getPunktnr() { |
40 return this.punktnr; | 40 return this.punktnr; |
41 } | 41 } |
42 | 42 |
43 public void setPunktnr(int punktnr) { | 43 public void setPunktnr(int punktnr) { |
44 this.punktnr = punktnr; | 44 this.punktnr = punktnr; |
45 } | 45 } |
46 | 46 |
47 | 47 |
48 public boolean equals(Object other) { | 48 public boolean equals(Object other) { |
49 if ( (this == other ) ) return true; | 49 if ( (this == other ) ) return true; |
50 if ( (other == null ) ) return false; | 50 if ( (other == null ) ) return false; |
51 if ( !(other instanceof HpeilpunktId) ) return false; | 51 if ( !(other instanceof HpeilpunktId) ) return false; |
52 HpeilpunktId castOther = ( HpeilpunktId ) other; | 52 HpeilpunktId castOther = ( HpeilpunktId ) other; |
53 | 53 |
54 return (this.getHpeilungid()==castOther.getHpeilungid()) | 54 return (this.getHpeilungid()==castOther.getHpeilungid()) |
55 && (this.getPunktnr()==castOther.getPunktnr()); | 55 && (this.getPunktnr()==castOther.getPunktnr()); |
56 } | 56 } |
57 | 57 |
58 public int hashCode() { | 58 public int hashCode() { |
59 int result = 17; | 59 int result = 17; |
60 | 60 |
61 result = 37 * result + (int) this.getHpeilungid(); | 61 result = 37 * result + (int) this.getHpeilungid(); |
62 result = 37 * result + this.getPunktnr(); | 62 result = 37 * result + this.getPunktnr(); |
63 return result; | 63 return result; |
64 } | 64 } |
65 } | 65 } |