changeset 1218:b8e8dcdcc595

Add missing annotations to avoid deserialisation errors.
author Tom Gottfried <tom@intevation.de>
date Fri, 09 Dec 2016 11:31:13 +0100
parents 99e7ede1f37c
children b3331bc71f30
files src/main/java/de/intevation/lada/model/stammdaten/Verwaltungsgrenze.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stammdaten/Verwaltungsgrenze.java	Thu Dec 08 16:56:17 2016 +0100
+++ b/src/main/java/de/intevation/lada/model/stammdaten/Verwaltungsgrenze.java	Fri Dec 09 11:31:13 2016 +0100
@@ -7,12 +7,14 @@
 import javax.persistence.Id;
 import javax.persistence.Table;
 
+import org.hibernate.annotations.Type;
+
 import com.vividsolutions.jts.geom.MultiPolygon;
 
 
 /**
  * The persistent class for the verwaltungsgrenze database table.
- * 
+ *
  */
 @Entity
 @Table(name="verwaltungsgrenze")
@@ -25,6 +27,8 @@
 	@Column(name="gem_id")
 	private String gemId;
 
+	@Column(columnDefinition="geometry(MultiPolygon, 4326)")
+	@Type(type = "org.hibernate.spatial.GeometryType")
 	private MultiPolygon shape;
 
 	public Verwaltungsgrenze() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)