Mercurial > dive4elements > river
annotate flys-backend/src/main/java/de/intevation/flys/model/HWSLine.java @ 5093:558807975769 dami
Remove WMSCatchmentArtifact Class
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 25 Feb 2013 12:35:12 +0100 |
parents | e836b2bd683e |
children | a2600507761e |
rev | line source |
---|---|
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.model; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
3 import com.vividsolutions.jts.geom.Geometry; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
4 |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
5 import de.intevation.flys.model.HWSKind; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
6 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 import java.io.Serializable; |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
8 import java.util.List; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 import javax.persistence.Column; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 import javax.persistence.Entity; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 import javax.persistence.Id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 import javax.persistence.JoinColumn; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 import javax.persistence.OneToOne; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 import javax.persistence.Table; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
17 import org.hibernate.Session; |
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
18 import org.hibernate.Query; |
5064
fb7c4ad94bd8
Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents:
5061
diff
changeset
|
19 import org.hibernate.annotations.Type; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
21 import de.intevation.flys.backend.SessionHolder; |
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
22 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 @Entity |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 @Table(name = "hws_lines") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 public class HWSLine implements Serializable { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
27 private Integer id; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
29 private Integer ogrFid; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
30 private HWSKind kind; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
31 private FedState fedState; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
32 private River river; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
33 private Integer offical; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
34 private Integer shoreSide; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
35 private String name; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
36 private String path; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
37 private String agency; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
38 private String range; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
39 private String source; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
40 private String status_date; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
41 private String description; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
42 private Geometry geom; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 @Id |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
45 @Column(name = "id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
46 public Integer getId() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
47 return id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
48 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
49 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
50 public void setId(Integer id) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 this.id = id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
53 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 @Column(name = "geom") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 @Type(type = "org.hibernatespatial.GeometryUserType") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 public Geometry getGeom() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 return geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
58 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
59 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 public void setGeom(Geometry geom) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
62 this.geom = geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
66 * Get ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
68 * @return ogrFid as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 @Column(name = "ogr_fid") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
71 public Integer getOgrFid() { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
72 return ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
73 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
74 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
75 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
76 * Set ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
77 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
78 * @param ogrFid the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
80 public void setOgrFid(Integer ogrFid) { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
81 this.ogrFid = ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
82 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
84 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
85 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
86 * Get offical. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
87 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
88 * @return offical as Integer. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
90 @Column(name = "offical") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
91 public Integer getOffical() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
92 return offical; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
94 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
95 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
96 * Set offical. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
97 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
98 * @param offical the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
99 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
100 public void setOffical(Integer offical) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
101 this.offical = offical; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
102 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
103 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
104 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
105 * Get shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
106 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
107 * @return shoreSide as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
108 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
109 @Column(name = "shore_side") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
110 public Integer getShoreSide() { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
111 return shoreSide; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
112 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
113 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
114 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
115 * Set shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
116 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
117 * @param shoreSide the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
118 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
119 public void setShoreSide(Integer shoreSide) { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
120 this.shoreSide = shoreSide; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
121 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
122 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
123 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
124 * Get name. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
125 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
126 * @return name as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
127 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
128 @Column(name = "name") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
129 public String getName() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
130 return name; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
131 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
132 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
133 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
134 * Set name. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
135 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
136 * @param name the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
137 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
138 public void setName(String name) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
139 this.name = name; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
140 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
141 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
142 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
143 * Get path. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
144 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
145 * @return path as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
146 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
147 @Column(name = "path") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
148 public String getPath() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
149 return path; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
150 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
151 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
152 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
153 * Set path. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
154 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
155 * @param path the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
156 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
157 public void setPath(String path) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
158 this.path = path; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
159 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
160 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
161 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
162 * Get agency. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
163 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
164 * @return agency as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
165 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
166 @Column(name = "agency") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
167 public String getAgency() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
168 return agency; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
169 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
170 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
171 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
172 * Set agency. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
173 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
174 * @param agency the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
175 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
176 public void setAgency(String agency) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
177 this.agency = agency; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
178 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
179 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
180 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
181 * Get range. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
182 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
183 * @return range as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
184 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
185 @Column(name = "range") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
186 public String getRange() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
187 return range; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
188 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
189 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
190 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
191 * Set range. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
192 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
193 * @param range the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
194 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
195 public void setRange(String range) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
196 this.range = range; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
197 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
198 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
199 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
200 * Get source. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
201 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
202 * @return source as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
203 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
204 @Column(name = "source") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
205 public String getSource() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
206 return source; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
207 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
208 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
209 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
210 * Set source. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
211 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
212 * @param source the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
213 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
214 public void setSource(String source) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
215 this.source = source; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
216 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
217 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
218 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
219 * Get status_date. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
220 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
221 * @return status_date as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
222 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
223 @Column(name = "status_date") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
224 public String getStatusDate() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
225 return status_date; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
226 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
227 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
228 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
229 * Set status_date. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
230 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
231 * @param status_date the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
232 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
233 public void setStatusDate(String status_date) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
234 this.status_date = status_date; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
235 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
236 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
237 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
238 * Get description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
239 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
240 * @return description as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
241 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
242 @Column(name = "description") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
243 public String getDescription() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
244 return description; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
245 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
246 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
247 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
248 * Set description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
249 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
250 * @param description the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
251 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
252 public void setDescription(String description) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
253 this.description = description; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
254 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
255 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
256 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
257 * Get kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
258 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
259 * @return kind as HWSKind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
260 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
261 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
262 @JoinColumn(name = "kind_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
263 public HWSKind getKind() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
264 return kind; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
265 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
266 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
267 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
268 * Set kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
269 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
270 * @param kind the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
271 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
272 public void setKind(HWSKind kind) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
273 this.kind = kind; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
274 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
275 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
276 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
277 * Get fedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
278 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
279 * @return fedState as FedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
280 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
281 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
282 @JoinColumn(name = "fed_state_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
283 public FedState getFedState() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
284 return fedState; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
285 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
286 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
287 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
288 * Set fedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
289 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
290 * @param fedState the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
291 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
292 public void setFedState(FedState fedState) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
293 this.fedState = fedState; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
294 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
295 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
296 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
297 * Get river. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
298 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
299 * @return river as River. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
300 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
301 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
302 @JoinColumn(name = "river_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
303 public River getRiver() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
304 return river; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
305 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
306 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
307 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
308 * Set river. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
309 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
310 * @param river the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
311 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
312 public void setRiver(River river) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
313 this.river = river; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
314 } |
5090
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
315 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
316 public static List<HWSLine> getLines(int riverId, String name) { |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
317 Session session = SessionHolder.HOLDER.get(); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
318 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
319 Query query = session.createQuery( |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
320 "from HWSLine where river.id =:river_id and name=:name"); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
321 query.setParameter("river_id", riverId); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
322 query.setParameter("name", name); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
323 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
324 return query.list(); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
325 } |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
326 } |