Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/HpeilpunktId.java @ 3800:69d19995bc3c 2.9.1
merged flys-backend/2.9.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:48 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
3786:4adc35aa655c | 3800:69d19995bc3c |
---|---|
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 * HpeilpunktId generated by hbm2java | |
10 */ | |
11 @Embeddable | |
12 public class HpeilpunktId implements java.io.Serializable { | |
13 | |
14 | |
15 private long hpeilungid; | |
16 private int punktnr; | |
17 | |
18 public HpeilpunktId() { | |
19 } | |
20 | |
21 public HpeilpunktId(long hpeilungid, int punktnr) { | |
22 this.hpeilungid = hpeilungid; | |
23 this.punktnr = punktnr; | |
24 } | |
25 | |
26 | |
27 | |
28 @Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) | |
29 public long getHpeilungid() { | |
30 return this.hpeilungid; | |
31 } | |
32 | |
33 public void setHpeilungid(long hpeilungid) { | |
34 this.hpeilungid = hpeilungid; | |
35 } | |
36 | |
37 | |
38 @Column(name="PUNKTNR", nullable=false, precision=5, scale=0) | |
39 public int getPunktnr() { | |
40 return this.punktnr; | |
41 } | |
42 | |
43 public void setPunktnr(int punktnr) { | |
44 this.punktnr = punktnr; | |
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 HpeilpunktId) ) return false; | |
52 HpeilpunktId castOther = ( HpeilpunktId ) other; | |
53 | |
54 return (this.getHpeilungid()==castOther.getHpeilungid()) | |
55 && (this.getPunktnr()==castOther.getPunktnr()); | |
56 } | |
57 | |
58 public int hashCode() { | |
59 int result = 17; | |
60 | |
61 result = 37 * result + (int) this.getHpeilungid(); | |
62 result = 37 * result + this.getPunktnr(); | |
63 return result; | |
64 } | |
65 } |