comparison backend/src/main/java/org/dive4elements/river/seddb/model/Zzthema.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/Zzthema.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.util.HashSet;
14 import java.util.Set;
15 import javax.persistence.Column;
16 import javax.persistence.Entity;
17 import javax.persistence.FetchType;
18 import javax.persistence.Id;
19 import javax.persistence.OneToMany;
20 import javax.persistence.Table;
21
22 /**
23 * Zzthema generated by hbm2java
24 */
25 @Entity
26 @Table(name="ZZTHEMA"
27 ,schema="SEDDB"
28 )
29 public class Zzthema implements java.io.Serializable {
30
31
32 private long themaid;
33 private String name;
34 private boolean istaktiv;
35 private String bemerkung;
36 private Set<Bild> bilds = new HashSet<Bild>(0);
37 private Set<Probebild> probebilds = new HashSet<Probebild>(0);
38
39 public Zzthema() {
40 }
41
42
43 public Zzthema(long themaid, String name, boolean istaktiv) {
44 this.themaid = themaid;
45 this.name = name;
46 this.istaktiv = istaktiv;
47 }
48 public Zzthema(long themaid, String name, boolean istaktiv, String bemerkung, Set<Bild> bilds, Set<Probebild> probebilds) {
49 this.themaid = themaid;
50 this.name = name;
51 this.istaktiv = istaktiv;
52 this.bemerkung = bemerkung;
53 this.bilds = bilds;
54 this.probebilds = probebilds;
55 }
56
57 @Id
58
59
60 @Column(name="THEMAID", unique=true, nullable=false, precision=11, scale=0)
61 public long getThemaid() {
62 return this.themaid;
63 }
64
65 public void setThemaid(long themaid) {
66 this.themaid = themaid;
67 }
68
69
70 @Column(name="NAME", nullable=false, length=50)
71 public String getName() {
72 return this.name;
73 }
74
75 public void setName(String name) {
76 this.name = name;
77 }
78
79
80 @Column(name="ISTAKTIV", nullable=false, precision=1, scale=0)
81 public boolean isIstaktiv() {
82 return this.istaktiv;
83 }
84
85 public void setIstaktiv(boolean istaktiv) {
86 this.istaktiv = istaktiv;
87 }
88
89
90 @Column(name="BEMERKUNG", length=240)
91 public String getBemerkung() {
92 return this.bemerkung;
93 }
94
95 public void setBemerkung(String bemerkung) {
96 this.bemerkung = bemerkung;
97 }
98
99 @OneToMany(fetch=FetchType.LAZY, mappedBy="zzthema")
100 public Set<Bild> getBilds() {
101 return this.bilds;
102 }
103
104 public void setBilds(Set<Bild> bilds) {
105 this.bilds = bilds;
106 }
107
108 @OneToMany(fetch=FetchType.LAZY, mappedBy="zzthema")
109 public Set<Probebild> getProbebilds() {
110 return this.probebilds;
111 }
112
113 public void setProbebilds(Set<Probebild> probebilds) {
114 this.probebilds = probebilds;
115 }
116 }

http://dive4elements.wald.intevation.org