Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Zzthema.java @ 3689:c938e568c4a2 2.9
merged flys-backend/2.9
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:44 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
3651:06a65baae494 | 3689:c938e568c4a2 |
---|---|
1 package de.intevation.seddb.model; | |
2 // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 | |
3 | |
4 | |
5 import java.util.HashSet; | |
6 import java.util.Set; | |
7 import javax.persistence.Column; | |
8 import javax.persistence.Entity; | |
9 import javax.persistence.FetchType; | |
10 import javax.persistence.Id; | |
11 import javax.persistence.OneToMany; | |
12 import javax.persistence.Table; | |
13 | |
14 /** | |
15 * Zzthema generated by hbm2java | |
16 */ | |
17 @Entity | |
18 @Table(name="ZZTHEMA" | |
19 ,schema="SEDDB" | |
20 ) | |
21 public class Zzthema implements java.io.Serializable { | |
22 | |
23 | |
24 private long themaid; | |
25 private String name; | |
26 private boolean istaktiv; | |
27 private String bemerkung; | |
28 private Set<Bild> bilds = new HashSet<Bild>(0); | |
29 private Set<Probebild> probebilds = new HashSet<Probebild>(0); | |
30 | |
31 public Zzthema() { | |
32 } | |
33 | |
34 | |
35 public Zzthema(long themaid, String name, boolean istaktiv) { | |
36 this.themaid = themaid; | |
37 this.name = name; | |
38 this.istaktiv = istaktiv; | |
39 } | |
40 public Zzthema(long themaid, String name, boolean istaktiv, String bemerkung, Set<Bild> bilds, Set<Probebild> probebilds) { | |
41 this.themaid = themaid; | |
42 this.name = name; | |
43 this.istaktiv = istaktiv; | |
44 this.bemerkung = bemerkung; | |
45 this.bilds = bilds; | |
46 this.probebilds = probebilds; | |
47 } | |
48 | |
49 @Id | |
50 | |
51 | |
52 @Column(name="THEMAID", unique=true, nullable=false, precision=11, scale=0) | |
53 public long getThemaid() { | |
54 return this.themaid; | |
55 } | |
56 | |
57 public void setThemaid(long themaid) { | |
58 this.themaid = themaid; | |
59 } | |
60 | |
61 | |
62 @Column(name="NAME", nullable=false, length=50) | |
63 public String getName() { | |
64 return this.name; | |
65 } | |
66 | |
67 public void setName(String name) { | |
68 this.name = name; | |
69 } | |
70 | |
71 | |
72 @Column(name="ISTAKTIV", nullable=false, precision=1, scale=0) | |
73 public boolean isIstaktiv() { | |
74 return this.istaktiv; | |
75 } | |
76 | |
77 public void setIstaktiv(boolean istaktiv) { | |
78 this.istaktiv = istaktiv; | |
79 } | |
80 | |
81 | |
82 @Column(name="BEMERKUNG", length=240) | |
83 public String getBemerkung() { | |
84 return this.bemerkung; | |
85 } | |
86 | |
87 public void setBemerkung(String bemerkung) { | |
88 this.bemerkung = bemerkung; | |
89 } | |
90 | |
91 @OneToMany(fetch=FetchType.LAZY, mappedBy="zzthema") | |
92 public Set<Bild> getBilds() { | |
93 return this.bilds; | |
94 } | |
95 | |
96 public void setBilds(Set<Bild> bilds) { | |
97 this.bilds = bilds; | |
98 } | |
99 | |
100 @OneToMany(fetch=FetchType.LAZY, mappedBy="zzthema") | |
101 public Set<Probebild> getProbebilds() { | |
102 return this.probebilds; | |
103 } | |
104 | |
105 public void setProbebilds(Set<Probebild> probebilds) { | |
106 this.probebilds = probebilds; | |
107 } | |
108 } |