[Lada-commits] [PATCH 1 of 2] Add missing annotations to avoid deserialisation errors
Wald Commits
scm-commit at wald.intevation.org
Fri Dec 9 12:08:41 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481279473 -3600
# Node ID b8e8dcdcc595abab4ff20f199319546422f9b4ce
# Parent 99e7ede1f37c55e138431cf13508f180720d7b1f
Add missing annotations to avoid deserialisation errors.
diff -r 99e7ede1f37c -r b8e8dcdcc595 src/main/java/de/intevation/lada/model/stammdaten/Verwaltungsgrenze.java
--- 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() {
More information about the Lada-commits
mailing list