comparison backend/src/main/java/org/dive4elements/river/seddb/model/HpeilpunktId.java @ 5873:1e68eca26b8a

river backend: Moved SedDB hibernate model to org/dive4elements/river/seddb.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 29 Apr 2013 11:33:01 +0200
parents backend/src/main/java/de/intevation/seddb/model/HpeilpunktId.java@4dd33b86dc61
children 7ba4815a52a4
comparison
equal deleted inserted replaced
5872:bc4e1bf26227 5873:1e68eca26b8a
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU AGPL (>=v3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
6 * documentation coming with Dive4Elements River for details.
7 */
8
9 package org.dive4elements.seddb.model;
10 // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1
11
12
13 import javax.persistence.Column;
14 import javax.persistence.Embeddable;
15
16 /**
17 * HpeilpunktId generated by hbm2java
18 */
19 @Embeddable
20 public class HpeilpunktId implements java.io.Serializable {
21
22
23 private long hpeilungid;
24 private int punktnr;
25
26 public HpeilpunktId() {
27 }
28
29 public HpeilpunktId(long hpeilungid, int punktnr) {
30 this.hpeilungid = hpeilungid;
31 this.punktnr = punktnr;
32 }
33
34
35
36 @Column(name="HPEILUNGID", nullable=false, precision=11, scale=0)
37 public long getHpeilungid() {
38 return this.hpeilungid;
39 }
40
41 public void setHpeilungid(long hpeilungid) {
42 this.hpeilungid = hpeilungid;
43 }
44
45
46 @Column(name="PUNKTNR", nullable=false, precision=5, scale=0)
47 public int getPunktnr() {
48 return this.punktnr;
49 }
50
51 public void setPunktnr(int punktnr) {
52 this.punktnr = punktnr;
53 }
54
55
56 public boolean equals(Object other) {
57 if ( (this == other ) ) return true;
58 if ( (other == null ) ) return false;
59 if ( !(other instanceof HpeilpunktId) ) return false;
60 HpeilpunktId castOther = ( HpeilpunktId ) other;
61
62 return (this.getHpeilungid()==castOther.getHpeilungid())
63 && (this.getPunktnr()==castOther.getPunktnr());
64 }
65
66 public int hashCode() {
67 int result = 17;
68
69 result = 37 * result + (int) this.getHpeilungid();
70 result = 37 * result + this.getPunktnr();
71 return result;
72 }
73 }

http://dive4elements.wald.intevation.org