comparison backend/src/main/java/org/dive4elements/river/seddb/model/Sprobe.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/Sprobe.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 java.math.BigDecimal;
14 import javax.persistence.AttributeOverride;
15 import javax.persistence.AttributeOverrides;
16 import javax.persistence.Column;
17 import javax.persistence.EmbeddedId;
18 import javax.persistence.Entity;
19 import javax.persistence.FetchType;
20 import javax.persistence.JoinColumn;
21 import javax.persistence.ManyToOne;
22 import javax.persistence.Table;
23
24 /**
25 * Sprobe generated by hbm2java
26 */
27 @Entity
28 @Table(name="SPROBE"
29 ,schema="SEDDB"
30 )
31 public class Sprobe implements java.io.Serializable {
32
33
34 private SprobeId id;
35 private Slotrechte slotrechte;
36 private short wprozpkt;
37 private BigDecimal wpkt;
38 private BigDecimal vpkt;
39 private BigDecimal csandpkt;
40 private BigDecimal cschwebpkt;
41 private BigDecimal sandtrieb;
42 private BigDecimal schwebtrieb;
43
44 public Sprobe() {
45 }
46
47
48 public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt) {
49 this.id = id;
50 this.slotrechte = slotrechte;
51 this.wprozpkt = wprozpkt;
52 this.wpkt = wpkt;
53 this.vpkt = vpkt;
54 this.csandpkt = csandpkt;
55 this.cschwebpkt = cschwebpkt;
56 }
57 public Sprobe(SprobeId id, Slotrechte slotrechte, short wprozpkt, BigDecimal wpkt, BigDecimal vpkt, BigDecimal csandpkt, BigDecimal cschwebpkt, BigDecimal sandtrieb, BigDecimal schwebtrieb) {
58 this.id = id;
59 this.slotrechte = slotrechte;
60 this.wprozpkt = wprozpkt;
61 this.wpkt = wpkt;
62 this.vpkt = vpkt;
63 this.csandpkt = csandpkt;
64 this.cschwebpkt = cschwebpkt;
65 this.sandtrieb = sandtrieb;
66 this.schwebtrieb = schwebtrieb;
67 }
68
69 @EmbeddedId
70
71
72 @AttributeOverrides( {
73 @AttributeOverride(name="slotrechteid", column=@Column(name="SLOTRECHTEID", nullable=false, precision=11, scale=0) ),
74 @AttributeOverride(name="lfdnr", column=@Column(name="LFDNR", nullable=false, precision=5, scale=0) ) } )
75 public SprobeId getId() {
76 return this.id;
77 }
78
79 public void setId(SprobeId id) {
80 this.id = id;
81 }
82
83 @ManyToOne(fetch=FetchType.LAZY)
84 @JoinColumn(name="SLOTRECHTEID", nullable=false, insertable=false, updatable=false)
85 public Slotrechte getSlotrechte() {
86 return this.slotrechte;
87 }
88
89 public void setSlotrechte(Slotrechte slotrechte) {
90 this.slotrechte = slotrechte;
91 }
92
93
94 @Column(name="WPROZPKT", nullable=false, precision=3, scale=0)
95 public short getWprozpkt() {
96 return this.wprozpkt;
97 }
98
99 public void setWprozpkt(short wprozpkt) {
100 this.wprozpkt = wprozpkt;
101 }
102
103
104 @Column(name="WPKT", nullable=false, precision=8, scale=3)
105 public BigDecimal getWpkt() {
106 return this.wpkt;
107 }
108
109 public void setWpkt(BigDecimal wpkt) {
110 this.wpkt = wpkt;
111 }
112
113
114 @Column(name="VPKT", nullable=false, precision=6, scale=4)
115 public BigDecimal getVpkt() {
116 return this.vpkt;
117 }
118
119 public void setVpkt(BigDecimal vpkt) {
120 this.vpkt = vpkt;
121 }
122
123
124 @Column(name="CSANDPKT", nullable=false, precision=8, scale=3)
125 public BigDecimal getCsandpkt() {
126 return this.csandpkt;
127 }
128
129 public void setCsandpkt(BigDecimal csandpkt) {
130 this.csandpkt = csandpkt;
131 }
132
133
134 @Column(name="CSCHWEBPKT", nullable=false, precision=8, scale=3)
135 public BigDecimal getCschwebpkt() {
136 return this.cschwebpkt;
137 }
138
139 public void setCschwebpkt(BigDecimal cschwebpkt) {
140 this.cschwebpkt = cschwebpkt;
141 }
142
143
144 @Column(name="SANDTRIEB", precision=8, scale=3)
145 public BigDecimal getSandtrieb() {
146 return this.sandtrieb;
147 }
148
149 public void setSandtrieb(BigDecimal sandtrieb) {
150 this.sandtrieb = sandtrieb;
151 }
152
153
154 @Column(name="SCHWEBTRIEB", precision=8, scale=3)
155 public BigDecimal getSchwebtrieb() {
156 return this.schwebtrieb;
157 }
158
159 public void setSchwebtrieb(BigDecimal schwebtrieb) {
160 this.schwebtrieb = schwebtrieb;
161 }
162 }

http://dive4elements.wald.intevation.org