# HG changeset patch # User Tom Gottfried # Date 1489505234 -3600 # Node ID dbdb7c9bd51b43ea4c3e4f0d0b4264c6057a528a # Parent d10f0645b12545e577bd8f80d2296e879ee95590 Upgrade to new PostgreSQL JDBC-driver. This needs more explicit type mapping but fixes the sometimes occuring error because of unimplemented Jdbc4Connection.isValid(). diff -r d10f0645b125 -r dbdb7c9bd51b backend/pom.xml --- a/backend/pom.xml Mon Feb 22 17:26:36 2016 +0100 +++ b/backend/pom.xml Tue Mar 14 16:27:14 2017 +0100 @@ -132,9 +132,9 @@ - postgresql + org.postgresql postgresql - 9.1-901-1.jdbc4 + 42.0.0.jre7 runtime @@ -142,6 +142,12 @@ postgis-jdbc 1.3.3 runtime + + + postgresql + postgresql + + org.hibernatespatial diff -r d10f0645b125 -r dbdb7c9bd51b backend/src/main/java/org/dive4elements/river/model/River.java --- a/backend/src/main/java/org/dive4elements/river/model/River.java Mon Feb 22 17:26:36 2016 +0100 +++ b/backend/src/main/java/org/dive4elements/river/model/River.java Tue Mar 14 16:27:14 2017 +0100 @@ -31,6 +31,7 @@ import org.hibernate.Query; import org.hibernate.Session; +import org.hibernate.annotations.Type; import org.apache.log4j.Logger; @@ -109,6 +110,7 @@ this.name = name; } + @Type(type="numeric_boolean") @Column(name = "km_up") public boolean getKmUp() { return kmUp;