comparison backend/src/main/java/org/dive4elements/river/seddb/model/Slotrechte.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/Slotrechte.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 java.util.HashSet;
15 import java.util.Set;
16 import javax.persistence.Column;
17 import javax.persistence.Entity;
18 import javax.persistence.FetchType;
19 import javax.persistence.Id;
20 import javax.persistence.JoinColumn;
21 import javax.persistence.ManyToOne;
22 import javax.persistence.OneToMany;
23 import javax.persistence.Table;
24
25 /**
26 * Slotrechte generated by hbm2java
27 */
28 @Entity
29 @Table(name="SLOTRECHTE"
30 ,schema="SEDDB"
31 )
32 public class Slotrechte implements java.io.Serializable {
33
34
35 private long slotrechteid;
36 private Messung messung;
37 private BigDecimal uferabst;
38 private BigDecimal tsand;
39 private BigDecimal tschweb;
40 private BigDecimal fv;
41 private BigDecimal vm;
42 private BigDecimal tiefe;
43 private BigDecimal vsohle;
44 private String bemerkung;
45 private BigDecimal uferablinks;
46 private Set<Sprobe> sprobes = new HashSet<Sprobe>(0);
47
48 public Slotrechte() {
49 }
50
51 public Slotrechte(long slotrechteid, Messung messung, BigDecimal uferabst) {
52 this.slotrechteid = slotrechteid;
53 this.messung = messung;
54 this.uferabst = uferabst;
55 }
56 public Slotrechte(long slotrechteid, Messung messung, BigDecimal uferabst, BigDecimal tsand, BigDecimal tschweb, BigDecimal fv, BigDecimal vm, BigDecimal tiefe, BigDecimal vsohle, String bemerkung, BigDecimal uferablinks, Set<Sprobe> sprobes) {
57 this.slotrechteid = slotrechteid;
58 this.messung = messung;
59 this.uferabst = uferabst;
60 this.tsand = tsand;
61 this.tschweb = tschweb;
62 this.fv = fv;
63 this.vm = vm;
64 this.tiefe = tiefe;
65 this.vsohle = vsohle;
66 this.bemerkung = bemerkung;
67 this.uferablinks = uferablinks;
68 this.sprobes = sprobes;
69 }
70
71 @Id
72
73
74 @Column(name="SLOTRECHTEID", unique=true, nullable=false, precision=11, scale=0)
75 public long getSlotrechteid() {
76 return this.slotrechteid;
77 }
78
79 public void setSlotrechteid(long slotrechteid) {
80 this.slotrechteid = slotrechteid;
81 }
82
83 @ManyToOne(fetch=FetchType.LAZY)
84 @JoinColumn(name="MESSUNGID", nullable=false)
85 public Messung getMessung() {
86 return this.messung;
87 }
88
89 public void setMessung(Messung messung) {
90 this.messung = messung;
91 }
92
93
94 @Column(name="UFERABST", nullable=false, precision=8, scale=3)
95 public BigDecimal getUferabst() {
96 return this.uferabst;
97 }
98
99 public void setUferabst(BigDecimal uferabst) {
100 this.uferabst = uferabst;
101 }
102
103
104 @Column(name="TSAND", precision=8, scale=3)
105 public BigDecimal getTsand() {
106 return this.tsand;
107 }
108
109 public void setTsand(BigDecimal tsand) {
110 this.tsand = tsand;
111 }
112
113
114 @Column(name="TSCHWEB", precision=8, scale=3)
115 public BigDecimal getTschweb() {
116 return this.tschweb;
117 }
118
119 public void setTschweb(BigDecimal tschweb) {
120 this.tschweb = tschweb;
121 }
122
123
124 @Column(name="FV", precision=6, scale=3)
125 public BigDecimal getFv() {
126 return this.fv;
127 }
128
129 public void setFv(BigDecimal fv) {
130 this.fv = fv;
131 }
132
133
134 @Column(name="VM", precision=6, scale=4)
135 public BigDecimal getVm() {
136 return this.vm;
137 }
138
139 public void setVm(BigDecimal vm) {
140 this.vm = vm;
141 }
142
143
144 @Column(name="TIEFE", precision=8, scale=3)
145 public BigDecimal getTiefe() {
146 return this.tiefe;
147 }
148
149 public void setTiefe(BigDecimal tiefe) {
150 this.tiefe = tiefe;
151 }
152
153
154 @Column(name="VSOHLE", precision=6, scale=4)
155 public BigDecimal getVsohle() {
156 return this.vsohle;
157 }
158
159 public void setVsohle(BigDecimal vsohle) {
160 this.vsohle = vsohle;
161 }
162
163
164 @Column(name="BEMERKUNG", length=240)
165 public String getBemerkung() {
166 return this.bemerkung;
167 }
168
169 public void setBemerkung(String bemerkung) {
170 this.bemerkung = bemerkung;
171 }
172
173
174 @Column(name="UFERABLINKS", precision=8, scale=3)
175 public BigDecimal getUferablinks() {
176 return this.uferablinks;
177 }
178
179 public void setUferablinks(BigDecimal uferablinks) {
180 this.uferablinks = uferablinks;
181 }
182
183 @OneToMany(fetch=FetchType.LAZY, mappedBy="slotrechte")
184 public Set<Sprobe> getSprobes() {
185 return this.sprobes;
186 }
187
188 public void setSprobes(Set<Sprobe> sprobes) {
189 this.sprobes = sprobes;
190 }
191 }

http://dive4elements.wald.intevation.org