comparison flys-backend/src/main/java/de/intevation/seddb/model/HpeilpunktId.java @ 3332:aa8ed778c8cc

Added Hibernate access class to SedDB flys-backend/trunk@4658 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 14 Jun 2012 10:06:34 +0000
parents
children 2ae732e2c65c
comparison
equal deleted inserted replaced
3331:b2aac19a8982 3332:aa8ed778c8cc
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 }

http://dive4elements.wald.intevation.org