[Lada-commits] [PATCH 6 of 7] Updated verwaltungseinheit model

Wald Commits scm-commit at wald.intevation.org
Thu Feb 19 15:20:56 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424355683 -3600
# Node ID 391f602393f5c56c972aa3956c36a87f25062bab
# Parent  ae3105d0373706dce95cedefce1ddd82b2898cf9
Updated verwaltungseinheit model.

diff -r ae3105d03737 -r 391f602393f5 src/main/java/de/intevation/lada/model/stamm/Verwaltungseinheit.java
--- 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;
     }
 
 }


More information about the Lada-commits mailing list