Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Gewaesser.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.math.BigDecimal; | |
6 import java.util.HashSet; | |
7 import java.util.Set; | |
8 import javax.persistence.Column; | |
9 import javax.persistence.Entity; | |
10 import javax.persistence.FetchType; | |
11 import javax.persistence.Id; | |
12 import javax.persistence.OneToMany; | |
13 import javax.persistence.Table; | |
14 import javax.persistence.UniqueConstraint; | |
15 | |
16 /** | |
17 * Gewaesser generated by hbm2java | |
18 */ | |
19 @Entity | |
20 @Table(name="GEWAESSER" | |
21 ,schema="SEDDB" | |
22 , uniqueConstraints = @UniqueConstraint(columnNames="NAME") | |
23 ) | |
24 public class Gewaesser implements java.io.Serializable { | |
25 | |
26 | |
27 private long gewaesserid; | |
28 private String name; | |
29 private String kennung; | |
30 private BigDecimal laenge; | |
31 private BigDecimal einzugsgebiet; | |
32 private String bemerkung; | |
33 private Set<Bezugspegel> bezugspegels = new HashSet<Bezugspegel>(0); | |
34 private Set<Station> stations = new HashSet<Station>(0); | |
35 | |
36 public Gewaesser() { | |
37 } | |
38 | |
39 public Gewaesser(long gewaesserid, String name) { | |
40 this.gewaesserid = gewaesserid; | |
41 this.name = name; | |
42 } | |
43 public Gewaesser(long gewaesserid, String name, String kennung, BigDecimal laenge, BigDecimal einzugsgebiet, String bemerkung, Set<Bezugspegel> bezugspegels, Set<Station> stations) { | |
44 this.gewaesserid = gewaesserid; | |
45 this.name = name; | |
46 this.kennung = kennung; | |
47 this.laenge = laenge; | |
48 this.einzugsgebiet = einzugsgebiet; | |
49 this.bemerkung = bemerkung; | |
50 this.bezugspegels = bezugspegels; | |
51 this.stations = stations; | |
52 } | |
53 | |
54 @Id | |
55 | |
56 | |
57 @Column(name="GEWAESSERID", unique=true, nullable=false, precision=11, scale=0) | |
58 public long getGewaesserid() { | |
59 return this.gewaesserid; | |
60 } | |
61 | |
62 public void setGewaesserid(long gewaesserid) { | |
63 this.gewaesserid = gewaesserid; | |
64 } | |
65 | |
66 | |
67 @Column(name="NAME", unique=true, nullable=false, length=20) | |
68 public String getName() { | |
69 return this.name; | |
70 } | |
71 | |
72 public void setName(String name) { | |
73 this.name = name; | |
74 } | |
75 | |
76 | |
77 @Column(name="KENNUNG", length=11) | |
78 public String getKennung() { | |
79 return this.kennung; | |
80 } | |
81 | |
82 public void setKennung(String kennung) { | |
83 this.kennung = kennung; | |
84 } | |
85 | |
86 | |
87 @Column(name="LAENGE", precision=7, scale=3) | |
88 public BigDecimal getLaenge() { | |
89 return this.laenge; | |
90 } | |
91 | |
92 public void setLaenge(BigDecimal laenge) { | |
93 this.laenge = laenge; | |
94 } | |
95 | |
96 | |
97 @Column(name="EINZUGSGEBIET", precision=10) | |
98 public BigDecimal getEinzugsgebiet() { | |
99 return this.einzugsgebiet; | |
100 } | |
101 | |
102 public void setEinzugsgebiet(BigDecimal einzugsgebiet) { | |
103 this.einzugsgebiet = einzugsgebiet; | |
104 } | |
105 | |
106 | |
107 @Column(name="BEMERKUNG", length=240) | |
108 public String getBemerkung() { | |
109 return this.bemerkung; | |
110 } | |
111 | |
112 public void setBemerkung(String bemerkung) { | |
113 this.bemerkung = bemerkung; | |
114 } | |
115 | |
116 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") | |
117 public Set<Bezugspegel> getBezugspegels() { | |
118 return this.bezugspegels; | |
119 } | |
120 | |
121 public void setBezugspegels(Set<Bezugspegel> bezugspegels) { | |
122 this.bezugspegels = bezugspegels; | |
123 } | |
124 | |
125 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") | |
126 public Set<Station> getStations() { | |
127 return this.stations; | |
128 } | |
129 | |
130 public void setStations(Set<Station> stations) { | |
131 this.stations = stations; | |
132 } | |
133 | |
134 | |
135 | |
136 | |
137 } | |
138 | |
139 |