Skip to content
Snippets Groups Projects
Commit 7637df68 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updated to Hibernate 5.0.10

(Removing the @Type annotation)
parent 01c52f9c
Branches
No related tags found
No related merge requests found
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
<id>jitpack.io</id> <id>jitpack.io</id>
<url>https://jitpack.io</url> <url>https://jitpack.io</url>
</repository> </repository>
<repository> <!--repository>
<id>Hibernate Spatial repo</id> <id>Hibernate Spatial repo</id>
<url>http://www.hibernatespatial.org/repository</url> <url>http://www.hibernatespatial.org/repository</url>
</repository> </repository-->
</repositories> </repositories>
<dependencies> <dependencies>
...@@ -34,8 +34,7 @@ ...@@ -34,8 +34,7 @@
<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>
<artifactId>hibernate-spatial</artifactId> <artifactId>hibernate-spatial</artifactId>
<version>4.3</version> <version>5.0.10.Final</version>
<scope>provided</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
...@@ -137,6 +136,18 @@ ...@@ -137,6 +136,18 @@
<artifactId>passay</artifactId> <artifactId>passay</artifactId>
<version>1.1.0</version> <version>1.1.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.0.10.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1211</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>javax</groupId> <groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId> <artifactId>javaee-web-api</artifactId>
...@@ -183,12 +194,12 @@ ...@@ -183,12 +194,12 @@
<artifactId>jaxen</artifactId> <artifactId>jaxen</artifactId>
<version>1.1.1</version> <version>1.1.1</version>
</dependency> </dependency>
<dependency> <!--dependency>
<groupId>org.postgresql</groupId> <groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId> <artifactId>postgresql</artifactId>
<version>9.4-1206-jdbc42</version> <version>9.4-1211</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency-->
</dependencies> </dependencies>
<build> <build>
......
...@@ -32,7 +32,7 @@ import javax.persistence.NamedQueries; ...@@ -32,7 +32,7 @@ import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery; import javax.persistence.NamedQuery;
import javax.persistence.Table; import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.Type; //import org.hibernate.annotations.Type;
/** /**
* @copyright 2015 <a href="http://www.nibio.no/">NIBIO</a> * @copyright 2015 <a href="http://www.nibio.no/">NIBIO</a>
...@@ -54,7 +54,7 @@ public class Gis implements Serializable { ...@@ -54,7 +54,7 @@ public class Gis implements Serializable {
@Column(name = "gis_id") @Column(name = "gis_id")
private Integer gisId; private Integer gisId;
@JsonIgnore @JsonIgnore
@Type(type = "org.hibernate.spatial.GeometryType") //@Type(type = "org.hibernate.spatial.GeometryType")
@Column(name = "gis_geom", columnDefinition = "Geometry") @Column(name = "gis_geom", columnDefinition = "Geometry")
private Geometry gisGeom; private Geometry gisGeom;
......
...@@ -86,7 +86,7 @@ public class Organization implements Serializable { ...@@ -86,7 +86,7 @@ public class Organization implements Serializable {
@Column(name = "default_vips_core_user_id") @Column(name = "default_vips_core_user_id")
private Integer defaultVipsCoreUserId; private Integer defaultVipsCoreUserId;
@JsonIgnore @JsonIgnore
@Type(type = "org.hibernate.spatial.GeometryType") //@Type(type = "org.hibernate.spatial.GeometryType")
@Column(name = "default_map_center", columnDefinition = "Geometry") @Column(name = "default_map_center", columnDefinition = "Geometry")
private Point defaultMapCenter; private Point defaultMapCenter;
@OneToMany(mappedBy = "parentOrganizationId", fetch = FetchType.EAGER) @OneToMany(mappedBy = "parentOrganizationId", fetch = FetchType.EAGER)
......
...@@ -53,7 +53,7 @@ public class GeometryEntity implements Serializable { ...@@ -53,7 +53,7 @@ public class GeometryEntity implements Serializable {
@GeneratedValue(strategy = GenerationType.AUTO) @GeneratedValue(strategy = GenerationType.AUTO)
private Long id; private Long id;
@Type(type = "org.hibernate.spatial.GeometryType") //@Type(type = "org.hibernate.spatial.GeometryType")
@Column(name = "geometry_value", columnDefinition = "Geometry") @Column(name = "geometry_value", columnDefinition = "Geometry")
private Geometry geometryValue; private Geometry geometryValue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment