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