comparison backend/src/main/java/de/intevation/seddb/model/MpeilpunktId.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-backend/src/main/java/de/intevation/seddb/model/MpeilpunktId.java@18619c1e7c2a
children 4dd33b86dc61
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.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 * MpeilpunktId generated by hbm2java
10 */
11 @Embeddable
12 public class MpeilpunktId implements java.io.Serializable {
13
14
15 private long mpeilungid;
16 private int punktnr;
17
18 public MpeilpunktId() {
19 }
20
21 public MpeilpunktId(long mpeilungid, int punktnr) {
22 this.mpeilungid = mpeilungid;
23 this.punktnr = punktnr;
24 }
25
26
27
28 @Column(name="MPEILUNGID", nullable=false, precision=11, scale=0)
29 public long getMpeilungid() {
30 return this.mpeilungid;
31 }
32
33 public void setMpeilungid(long mpeilungid) {
34 this.mpeilungid = mpeilungid;
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 MpeilpunktId) ) return false;
52 MpeilpunktId castOther = ( MpeilpunktId ) other;
53
54 return (this.getMpeilungid()==castOther.getMpeilungid())
55 && (this.getPunktnr()==castOther.getPunktnr());
56 }
57
58 public int hashCode() {
59 int result = 17;
60
61 result = 37 * result + (int) this.getMpeilungid();
62 result = 37 * result + this.getPunktnr();
63 return result;
64 }
65 }

http://dive4elements.wald.intevation.org