diff flys-backend/src/main/java/de/intevation/flys/model/Floodmaps.java @ 2802:3fdac7b43dac

Registered missing Floodmaps and set its Geometry type to Geometry. flys-backend/trunk@4159 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 19 Mar 2012 06:09:31 +0000
parents 501f00e355eb
children 8649e4ed01ec
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/Floodmaps.java	Fri Mar 16 07:25:59 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/Floodmaps.java	Mon Mar 19 06:09:31 2012 +0000
@@ -15,6 +15,7 @@
 import org.hibernate.Query;
 import org.hibernate.annotations.Type;
 
+import com.vividsolutions.jts.geom.Geometry;
 import com.vividsolutions.jts.geom.MultiPolygon;
 
 import de.intevation.flys.backend.SessionHolder;
@@ -33,7 +34,7 @@
     private BigDecimal   diff;
     private BigDecimal   area;
     private BigDecimal   perimeter;
-    private MultiPolygon geom;
+    private Geometry     geom;
 
     public Floodmaps() {
     }
@@ -63,7 +64,7 @@
     }
 
 
-    @JoinColumn(name = "name")
+    @Column(name = "name")
     public String getName() {
         return name;
     }
@@ -131,12 +132,12 @@
 
     @Column(name = "geom")
     @Type(type = "org.hibernatespatial.GeometryUserType")
-    public MultiPolygon getGeom() {
+    public Geometry getGeom() {
         return geom;
     }
 
 
-    public void setGeom(MultiPolygon geom) {
+    public void setGeom(Geometry geom) {
         this.geom = geom;
     }
 

http://dive4elements.wald.intevation.org