comparison backend/src/main/java/org/dive4elements/river/seddb/model/Sohlprobe.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/Sohlprobe.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.Date;
15 import java.util.HashSet;
16 import java.util.Set;
17 import javax.persistence.Column;
18 import javax.persistence.Entity;
19 import javax.persistence.FetchType;
20 import javax.persistence.Id;
21 import javax.persistence.JoinColumn;
22 import javax.persistence.ManyToOne;
23 import javax.persistence.OneToMany;
24 import javax.persistence.Table;
25 import javax.persistence.Temporal;
26 import javax.persistence.TemporalType;
27
28 /**
29 * Sohlprobe generated by hbm2java
30 */
31 @Entity
32 @Table(name="SOHLPROBE"
33 ,schema="SEDDB"
34 )
35 public class Sohlprobe implements java.io.Serializable {
36
37
38 private long sohlprobeid;
39 private Zzprobenahmeart zzprobenahmeart;
40 private Sohltest sohltest;
41 private BigDecimal tiefevon;
42 private BigDecimal tiefebis;
43 private String beschreibung;
44 private Date lastupdated;
45 private Set<Probebild> probebilds = new HashSet<Probebild>(0);
46 private Set<Siebanalyse> siebanalyses = new HashSet<Siebanalyse>(0);
47
48 public Sohlprobe() {
49 }
50
51 public Sohlprobe(long sohlprobeid, Zzprobenahmeart zzprobenahmeart, Sohltest sohltest, Date lastupdated) {
52 this.sohlprobeid = sohlprobeid;
53 this.zzprobenahmeart = zzprobenahmeart;
54 this.sohltest = sohltest;
55 this.lastupdated = lastupdated;
56 }
57 public Sohlprobe(long sohlprobeid, Zzprobenahmeart zzprobenahmeart, Sohltest sohltest, BigDecimal tiefevon, BigDecimal tiefebis, String beschreibung, Date lastupdated, Set<Probebild> probebilds, Set<Siebanalyse> siebanalyses) {
58 this.sohlprobeid = sohlprobeid;
59 this.zzprobenahmeart = zzprobenahmeart;
60 this.sohltest = sohltest;
61 this.tiefevon = tiefevon;
62 this.tiefebis = tiefebis;
63 this.beschreibung = beschreibung;
64 this.lastupdated = lastupdated;
65 this.probebilds = probebilds;
66 this.siebanalyses = siebanalyses;
67 }
68
69 @Id
70
71
72 @Column(name="SOHLPROBEID", unique=true, nullable=false, precision=11, scale=0)
73 public long getSohlprobeid() {
74 return this.sohlprobeid;
75 }
76
77 public void setSohlprobeid(long sohlprobeid) {
78 this.sohlprobeid = sohlprobeid;
79 }
80
81 @ManyToOne(fetch=FetchType.LAZY)
82 @JoinColumn(name="PROBENAHMEARTID", nullable=false)
83 public Zzprobenahmeart getZzprobenahmeart() {
84 return this.zzprobenahmeart;
85 }
86
87 public void setZzprobenahmeart(Zzprobenahmeart zzprobenahmeart) {
88 this.zzprobenahmeart = zzprobenahmeart;
89 }
90
91 @ManyToOne(fetch=FetchType.LAZY)
92 @JoinColumn(name="SOHLTESTID", nullable=false)
93 public Sohltest getSohltest() {
94 return this.sohltest;
95 }
96
97 public void setSohltest(Sohltest sohltest) {
98 this.sohltest = sohltest;
99 }
100
101
102 @Column(name="TIEFEVON", precision=8, scale=3)
103 public BigDecimal getTiefevon() {
104 return this.tiefevon;
105 }
106
107 public void setTiefevon(BigDecimal tiefevon) {
108 this.tiefevon = tiefevon;
109 }
110
111
112 @Column(name="TIEFEBIS", precision=8, scale=3)
113 public BigDecimal getTiefebis() {
114 return this.tiefebis;
115 }
116
117 public void setTiefebis(BigDecimal tiefebis) {
118 this.tiefebis = tiefebis;
119 }
120
121
122 @Column(name="BESCHREIBUNG", length=1024)
123 public String getBeschreibung() {
124 return this.beschreibung;
125 }
126
127 public void setBeschreibung(String beschreibung) {
128 this.beschreibung = beschreibung;
129 }
130
131 @Temporal(TemporalType.DATE)
132 @Column(name="LASTUPDATED", nullable=false, length=7)
133 public Date getLastupdated() {
134 return this.lastupdated;
135 }
136
137 public void setLastupdated(Date lastupdated) {
138 this.lastupdated = lastupdated;
139 }
140
141 @OneToMany(fetch=FetchType.LAZY, mappedBy="sohlprobe")
142 public Set<Probebild> getProbebilds() {
143 return this.probebilds;
144 }
145
146 public void setProbebilds(Set<Probebild> probebilds) {
147 this.probebilds = probebilds;
148 }
149
150 @OneToMany(fetch=FetchType.LAZY, mappedBy="sohlprobe")
151 public Set<Siebanalyse> getSiebanalyses() {
152 return this.siebanalyses;
153 }
154
155 public void setSiebanalyses(Set<Siebanalyse> siebanalyses) {
156 this.siebanalyses = siebanalyses;
157 }
158
159
160
161
162 }
163
164

http://dive4elements.wald.intevation.org