Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Gprobe.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 java.math.BigDecimal; | |
6 import javax.persistence.AttributeOverride; | |
7 import javax.persistence.AttributeOverrides; | |
8 import javax.persistence.Column; | |
9 import javax.persistence.EmbeddedId; | |
10 import javax.persistence.Entity; | |
11 import javax.persistence.FetchType; | |
12 import javax.persistence.JoinColumn; | |
13 import javax.persistence.ManyToOne; | |
14 import javax.persistence.Table; | |
15 | |
16 /** | |
17 * Gprobe generated by hbm2java | |
18 */ | |
19 @Entity | |
20 @Table(name="GPROBE" | |
21 ,schema="SEDDB" | |
22 ) | |
23 public class Gprobe implements java.io.Serializable { | |
24 | |
25 | |
26 private GprobeId id; | |
27 private Glotrechte glotrechte; | |
28 private int messdauer; | |
29 private BigDecimal menge; | |
30 private BigDecimal gtrieb; | |
31 private BigDecimal faktor; | |
32 private BigDecimal mengeF; | |
33 private BigDecimal gtriebF; | |
34 | |
35 public Gprobe() { | |
36 } | |
37 | |
38 public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge) { | |
39 this.id = id; | |
40 this.glotrechte = glotrechte; | |
41 this.messdauer = messdauer; | |
42 this.menge = menge; | |
43 } | |
44 public Gprobe(GprobeId id, Glotrechte glotrechte, int messdauer, BigDecimal menge, BigDecimal gtrieb, BigDecimal faktor, BigDecimal mengeF, BigDecimal gtriebF) { | |
45 this.id = id; | |
46 this.glotrechte = glotrechte; | |
47 this.messdauer = messdauer; | |
48 this.menge = menge; | |
49 this.gtrieb = gtrieb; | |
50 this.faktor = faktor; | |
51 this.mengeF = mengeF; | |
52 this.gtriebF = gtriebF; | |
53 } | |
54 | |
55 @EmbeddedId | |
56 | |
57 | |
58 @AttributeOverrides( { | |
59 @AttributeOverride(name="glotrechteid", column=@Column(name="GLOTRECHTEID", nullable=false, precision=11, scale=0) ), | |
60 @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } ) | |
61 public GprobeId getId() { | |
62 return this.id; | |
63 } | |
64 | |
65 public void setId(GprobeId id) { | |
66 this.id = id; | |
67 } | |
68 | |
69 @ManyToOne(fetch=FetchType.LAZY) | |
70 @JoinColumn(name="GLOTRECHTEID", nullable=false, insertable=false, updatable=false) | |
71 public Glotrechte getGlotrechte() { | |
72 return this.glotrechte; | |
73 } | |
74 | |
75 public void setGlotrechte(Glotrechte glotrechte) { | |
76 this.glotrechte = glotrechte; | |
77 } | |
78 | |
79 | |
80 @Column(name="MESSDAUER", nullable=false, precision=5, scale=0) | |
81 public int getMessdauer() { | |
82 return this.messdauer; | |
83 } | |
84 | |
85 public void setMessdauer(int messdauer) { | |
86 this.messdauer = messdauer; | |
87 } | |
88 | |
89 | |
90 @Column(name="MENGE", nullable=false, precision=9, scale=3) | |
91 public BigDecimal getMenge() { | |
92 return this.menge; | |
93 } | |
94 | |
95 public void setMenge(BigDecimal menge) { | |
96 this.menge = menge; | |
97 } | |
98 | |
99 | |
100 @Column(name="GTRIEB", precision=8, scale=3) | |
101 public BigDecimal getGtrieb() { | |
102 return this.gtrieb; | |
103 } | |
104 | |
105 public void setGtrieb(BigDecimal gtrieb) { | |
106 this.gtrieb = gtrieb; | |
107 } | |
108 | |
109 | |
110 @Column(name="FAKTOR", precision=4, scale=3) | |
111 public BigDecimal getFaktor() { | |
112 return this.faktor; | |
113 } | |
114 | |
115 public void setFaktor(BigDecimal faktor) { | |
116 this.faktor = faktor; | |
117 } | |
118 | |
119 | |
120 @Column(name="MENGE_F", precision=9, scale=3) | |
121 public BigDecimal getMengeF() { | |
122 return this.mengeF; | |
123 } | |
124 | |
125 public void setMengeF(BigDecimal mengeF) { | |
126 this.mengeF = mengeF; | |
127 } | |
128 | |
129 | |
130 @Column(name="GTRIEB_F", precision=8, scale=3) | |
131 public BigDecimal getGtriebF() { | |
132 return this.gtriebF; | |
133 } | |
134 | |
135 public void setGtriebF(BigDecimal gtriebF) { | |
136 this.gtriebF = gtriebF; | |
137 } | |
138 } |