Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Zzsondierungart.java @ 3471:e4250c6e1538 2.8.1
merged flys-backend/2.8.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:40 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
3468:f37e7e8907cb | 3471:e4250c6e1538 |
---|---|
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 * Zzsondierungart generated by hbm2java | |
16 */ | |
17 @Entity | |
18 @Table(name="ZZSONDIERUNGART" | |
19 ,schema="SEDDB" | |
20 ) | |
21 public class Zzsondierungart implements java.io.Serializable { | |
22 | |
23 | |
24 private long sondierungartid; | |
25 private String name; | |
26 private boolean istaktiv; | |
27 private String bemerkung; | |
28 private Set<Sohltest> sohltests = new HashSet<Sohltest>(0); | |
29 | |
30 public Zzsondierungart() { | |
31 } | |
32 | |
33 public Zzsondierungart(long sondierungartid, String name, boolean istaktiv) { | |
34 this.sondierungartid = sondierungartid; | |
35 this.name = name; | |
36 this.istaktiv = istaktiv; | |
37 } | |
38 public Zzsondierungart(long sondierungartid, String name, boolean istaktiv, String bemerkung, Set<Sohltest> sohltests) { | |
39 this.sondierungartid = sondierungartid; | |
40 this.name = name; | |
41 this.istaktiv = istaktiv; | |
42 this.bemerkung = bemerkung; | |
43 this.sohltests = sohltests; | |
44 } | |
45 | |
46 @Id | |
47 | |
48 | |
49 @Column(name="SONDIERUNGARTID", unique=true, nullable=false, precision=11, scale=0) | |
50 public long getSondierungartid() { | |
51 return this.sondierungartid; | |
52 } | |
53 | |
54 public void setSondierungartid(long sondierungartid) { | |
55 this.sondierungartid = sondierungartid; | |
56 } | |
57 | |
58 | |
59 @Column(name="NAME", nullable=false, length=50) | |
60 public String getName() { | |
61 return this.name; | |
62 } | |
63 | |
64 public void setName(String name) { | |
65 this.name = name; | |
66 } | |
67 | |
68 | |
69 @Column(name="ISTAKTIV", nullable=false, precision=1, scale=0) | |
70 public boolean isIstaktiv() { | |
71 return this.istaktiv; | |
72 } | |
73 | |
74 public void setIstaktiv(boolean istaktiv) { | |
75 this.istaktiv = istaktiv; | |
76 } | |
77 | |
78 | |
79 @Column(name="BEMERKUNG", length=240) | |
80 public String getBemerkung() { | |
81 return this.bemerkung; | |
82 } | |
83 | |
84 public void setBemerkung(String bemerkung) { | |
85 this.bemerkung = bemerkung; | |
86 } | |
87 | |
88 @OneToMany(fetch=FetchType.LAZY, mappedBy="zzsondierungart") | |
89 public Set<Sohltest> getSohltests() { | |
90 return this.sohltests; | |
91 } | |
92 | |
93 public void setSohltests(Set<Sohltest> sohltests) { | |
94 this.sohltests = sohltests; | |
95 } | |
96 } |