comparison flys-backend/src/main/java/de/intevation/seddb/model/MessunglotcountId.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 java.math.BigDecimal;
6 import javax.persistence.Column;
7 import javax.persistence.Embeddable;
8
9 /**
10 * MessunglotcountId generated by hbm2java
11 */
12 @Embeddable
13 public class MessunglotcountId implements java.io.Serializable {
14
15
16 private long messungid;
17 private BigDecimal glotcount;
18 private BigDecimal slotcount;
19
20 public MessunglotcountId() {
21 }
22
23
24 public MessunglotcountId(long messungid) {
25 this.messungid = messungid;
26 }
27 public MessunglotcountId(long messungid, BigDecimal glotcount, BigDecimal slotcount) {
28 this.messungid = messungid;
29 this.glotcount = glotcount;
30 this.slotcount = slotcount;
31 }
32
33
34
35 @Column(name="MESSUNGID", nullable=false, precision=11, scale=0)
36 public long getMessungid() {
37 return this.messungid;
38 }
39
40 public void setMessungid(long messungid) {
41 this.messungid = messungid;
42 }
43
44
45 @Column(name="GLOTCOUNT", precision=22, scale=0)
46 public BigDecimal getGlotcount() {
47 return this.glotcount;
48 }
49
50 public void setGlotcount(BigDecimal glotcount) {
51 this.glotcount = glotcount;
52 }
53
54
55 @Column(name="SLOTCOUNT", precision=22, scale=0)
56 public BigDecimal getSlotcount() {
57 return this.slotcount;
58 }
59
60 public void setSlotcount(BigDecimal slotcount) {
61 this.slotcount = slotcount;
62 }
63
64
65 public boolean equals(Object other) {
66 if ( (this == other ) ) return true;
67 if ( (other == null ) ) return false;
68 if ( !(other instanceof MessunglotcountId) ) return false;
69 MessunglotcountId castOther = ( MessunglotcountId ) other;
70
71 return (this.getMessungid()==castOther.getMessungid())
72 && ( (this.getGlotcount()==castOther.getGlotcount()) || ( this.getGlotcount()!=null && castOther.getGlotcount()!=null && this.getGlotcount().equals(castOther.getGlotcount()) ) )
73 && ( (this.getSlotcount()==castOther.getSlotcount()) || ( this.getSlotcount()!=null && castOther.getSlotcount()!=null && this.getSlotcount().equals(castOther.getSlotcount()) ) );
74 }
75
76 public int hashCode() {
77 int result = 17;
78
79 result = 37 * result + (int) this.getMessungid();
80 result = 37 * result + ( getGlotcount() == null ? 0 : this.getGlotcount().hashCode() );
81 result = 37 * result + ( getSlotcount() == null ? 0 : this.getSlotcount().hashCode() );
82 return result;
83 }
84 }

http://dive4elements.wald.intevation.org