changeset 531:391f602393f5

Updated verwaltungseinheit model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 15:21:23 +0100
parents ae3105d03737
children 56a2d43b4af5
files src/main/java/de/intevation/lada/model/stamm/Verwaltungseinheit.java
diffstat 1 files changed, 12 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stamm/Verwaltungseinheit.java	Thu Feb 19 15:21:05 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/stamm/Verwaltungseinheit.java	Thu Feb 19 15:21:23 2015 +0100
@@ -52,9 +52,9 @@
 
     private String kreis;
 
-    private double latitude;
+    private Double latitude;
 
-    private double longitude;
+    private Double longitude;
 
     private String nuts;
 
@@ -62,10 +62,8 @@
 
     private String regbezirk;
 
-    //bi-directional many-to-one association to KoordinatenArt
-    @ManyToOne
-    @JoinColumn(name="kda_id")
-    private KoordinatenArt koordinatenArt;
+    @Column(name="kda_id")
+    private Integer koordinatenartId;
 
     public Verwaltungseinheit() {
     }
@@ -150,19 +148,19 @@
         this.kreis = kreis;
     }
 
-    public double getLatitude() {
+    public Double getLatitude() {
         return this.latitude;
     }
 
-    public void setLatitude(double latitude) {
+    public void setLatitude(Double latitude) {
         this.latitude = latitude;
     }
 
-    public double getLongitude() {
+    public Double getLongitude() {
         return this.longitude;
     }
 
-    public void setLongitude(double longitude) {
+    public void setLongitude(Double longitude) {
         this.longitude = longitude;
     }
 
@@ -190,12 +188,12 @@
         this.regbezirk = regbezirk;
     }
 
-    public KoordinatenArt getKoordinatenArt() {
-        return this.koordinatenArt;
+    public Integer getKoordinatenartId() {
+        return this.koordinatenartId;
     }
 
-    public void setKoordinatenArt(KoordinatenArt koordinatenArt) {
-        this.koordinatenArt = koordinatenArt;
+    public void setKoordinatenArt(Integer koordinatenartId) {
+        this.koordinatenartId = koordinatenartId;
     }
 
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)