Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/HydrBoundaryPoly.java @ 5062:bafc655ee630 dami
Add kind, sectie and sobek to HydrBoundary class
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 20 Feb 2013 17:02:29 +0100 |
parents | b6f94c5db89e |
children | 4e03f3976d4b |
comparison
equal
deleted
inserted
replaced
5061:c9ba713a7750 | 5062:bafc655ee630 |
---|---|
26 { | 26 { |
27 private Integer id; | 27 private Integer id; |
28 private String name; | 28 private String name; |
29 private River river; | 29 private River river; |
30 private Geometry geom; | 30 private Geometry geom; |
31 private SectieKind sectie; | |
32 private SobekKind sobek; | |
33 private BoundaryKind kind; | |
31 | 34 |
32 public HydrBoundaryPoly() { | 35 public HydrBoundaryPoly() { |
33 } | 36 } |
34 | 37 |
35 | 38 |
88 query.setParameter("river_id", riverId); | 91 query.setParameter("river_id", riverId); |
89 query.setParameter("name", name); | 92 query.setParameter("name", name); |
90 | 93 |
91 return query.list(); | 94 return query.list(); |
92 } | 95 } |
96 | |
97 /** | |
98 * Get sectie. | |
99 * | |
100 * @return sectie as SectieKind. | |
101 */ | |
102 @OneToOne | |
103 @Column(name = "sectie") | |
104 public SectieKind getSectie() | |
105 { | |
106 return sectie; | |
107 } | |
108 | |
109 /** | |
110 * Set sectie. | |
111 * | |
112 * @param sectie the value to set. | |
113 */ | |
114 public void setSectie(SectieKind sectie) | |
115 { | |
116 this.sectie = sectie; | |
117 } | |
118 | |
119 /** | |
120 * Get sobek. | |
121 * | |
122 * @return sobek as SobekKind. | |
123 */ | |
124 @OneToOne | |
125 @JoinColumn(name = "sobek") | |
126 public SobekKind getSobek() | |
127 { | |
128 return sobek; | |
129 } | |
130 | |
131 /** | |
132 * Set sobek. | |
133 * | |
134 * @param sobek the value to set. | |
135 */ | |
136 public void setSobek(SobekKind sobek) | |
137 { | |
138 this.sobek = sobek; | |
139 } | |
140 | |
141 /** | |
142 * Get kind. | |
143 * | |
144 * @return kind as BoundaryKind. | |
145 */ | |
146 @OneToOne | |
147 @JoinColumn(name = "kind") | |
148 public BoundaryKind getKind() | |
149 { | |
150 return kind; | |
151 } | |
152 | |
153 /** | |
154 * Set kind. | |
155 * | |
156 * @param kind the value to set. | |
157 */ | |
158 public void setKind(BoundaryKind kind) | |
159 { | |
160 this.kind = kind; | |
161 } | |
93 } | 162 } |
94 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 163 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |