Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/Bild.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/Bild.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 javax.persistence.Column; | |
14 import javax.persistence.Entity; | |
15 import javax.persistence.FetchType; | |
16 import javax.persistence.Id; | |
17 import javax.persistence.JoinColumn; | |
18 import javax.persistence.ManyToOne; | |
19 import javax.persistence.Table; | |
20 | |
21 /** | |
22 * Bild generated by hbm2java | |
23 */ | |
24 @Entity | |
25 @Table(name="BILD" | |
26 ,schema="SEDDB" | |
27 ) | |
28 public class Bild implements java.io.Serializable { | |
29 | |
30 | |
31 private long bildid; | |
32 private Zzthema zzthema; | |
33 private Sohltest sohltest; | |
34 private int lfdnr; | |
35 private boolean istdigital; | |
36 private String pfad; | |
37 private String standort; | |
38 private String medium; | |
39 private String medpfad; | |
40 private String bemerkung; | |
41 private String typklein; | |
42 private String typmittel; | |
43 private String typgross; | |
44 | |
45 public Bild() { | |
46 } | |
47 | |
48 public Bild(long bildid, Zzthema zzthema, Sohltest sohltest, int lfdnr, boolean istdigital) { | |
49 this.bildid = bildid; | |
50 this.zzthema = zzthema; | |
51 this.sohltest = sohltest; | |
52 this.lfdnr = lfdnr; | |
53 this.istdigital = istdigital; | |
54 } | |
55 public Bild(long bildid, Zzthema zzthema, Sohltest sohltest, int lfdnr, boolean istdigital, String pfad, String standort, String medium, String medpfad, String bemerkung, String typklein, String typmittel, String typgross) { | |
56 this.bildid = bildid; | |
57 this.zzthema = zzthema; | |
58 this.sohltest = sohltest; | |
59 this.lfdnr = lfdnr; | |
60 this.istdigital = istdigital; | |
61 this.pfad = pfad; | |
62 this.standort = standort; | |
63 this.medium = medium; | |
64 this.medpfad = medpfad; | |
65 this.bemerkung = bemerkung; | |
66 this.typklein = typklein; | |
67 this.typmittel = typmittel; | |
68 this.typgross = typgross; | |
69 } | |
70 | |
71 @Id | |
72 | |
73 | |
74 @Column(name="BILDID", unique=true, nullable=false, precision=11, scale=0) | |
75 public long getBildid() { | |
76 return this.bildid; | |
77 } | |
78 | |
79 public void setBildid(long bildid) { | |
80 this.bildid = bildid; | |
81 } | |
82 | |
83 @ManyToOne(fetch=FetchType.LAZY) | |
84 @JoinColumn(name="THEMAID", nullable=false) | |
85 public Zzthema getZzthema() { | |
86 return this.zzthema; | |
87 } | |
88 | |
89 public void setZzthema(Zzthema zzthema) { | |
90 this.zzthema = zzthema; | |
91 } | |
92 | |
93 @ManyToOne(fetch=FetchType.LAZY) | |
94 @JoinColumn(name="SOHLTESTID", nullable=false) | |
95 public Sohltest getSohltest() { | |
96 return this.sohltest; | |
97 } | |
98 | |
99 public void setSohltest(Sohltest sohltest) { | |
100 this.sohltest = sohltest; | |
101 } | |
102 | |
103 | |
104 @Column(name="LFDNR", nullable=false, precision=5, scale=0) | |
105 public int getLfdnr() { | |
106 return this.lfdnr; | |
107 } | |
108 | |
109 public void setLfdnr(int lfdnr) { | |
110 this.lfdnr = lfdnr; | |
111 } | |
112 | |
113 | |
114 @Column(name="ISTDIGITAL", nullable=false, precision=1, scale=0) | |
115 public boolean isIstdigital() { | |
116 return this.istdigital; | |
117 } | |
118 | |
119 public void setIstdigital(boolean istdigital) { | |
120 this.istdigital = istdigital; | |
121 } | |
122 | |
123 | |
124 @Column(name="PFAD", length=512) | |
125 public String getPfad() { | |
126 return this.pfad; | |
127 } | |
128 | |
129 public void setPfad(String pfad) { | |
130 this.pfad = pfad; | |
131 } | |
132 | |
133 | |
134 @Column(name="STANDORT", length=50) | |
135 public String getStandort() { | |
136 return this.standort; | |
137 } | |
138 | |
139 public void setStandort(String standort) { | |
140 this.standort = standort; | |
141 } | |
142 | |
143 | |
144 @Column(name="MEDIUM", length=50) | |
145 public String getMedium() { | |
146 return this.medium; | |
147 } | |
148 | |
149 public void setMedium(String medium) { | |
150 this.medium = medium; | |
151 } | |
152 | |
153 | |
154 @Column(name="MEDPFAD", length=50) | |
155 public String getMedpfad() { | |
156 return this.medpfad; | |
157 } | |
158 | |
159 public void setMedpfad(String medpfad) { | |
160 this.medpfad = medpfad; | |
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="TYPKLEIN", length=8) | |
175 public String getTypklein() { | |
176 return this.typklein; | |
177 } | |
178 | |
179 public void setTypklein(String typklein) { | |
180 this.typklein = typklein; | |
181 } | |
182 | |
183 | |
184 @Column(name="TYPMITTEL", length=8) | |
185 public String getTypmittel() { | |
186 return this.typmittel; | |
187 } | |
188 | |
189 public void setTypmittel(String typmittel) { | |
190 this.typmittel = typmittel; | |
191 } | |
192 | |
193 | |
194 @Column(name="TYPGROSS", length=8) | |
195 public String getTypgross() { | |
196 return this.typgross; | |
197 } | |
198 | |
199 public void setTypgross(String typgross) { | |
200 this.typgross = typgross; | |
201 } | |
202 } |