When I try to persist Point datatype to postgres DB it is failing with error org.postgresql.util.PSQLException: ERROR: column "pointColumn" is of type point but expression is of type geometry
Here is my pojo snappit
@Type(type="org.hibernate.spatial.GeometryType")
@Column(columnDefinition="Point", nullable = true)
private Point pointColumn;
Here is my driver and dialect properties
driverClass=org.postgresql.Driver
dialect=org.hibernate.spatial.dialect.postgis.PostgisDialect
Here is my spatial version details
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-spatial</artifactId>
<version>4.3</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.13</version>
</dependency>
Even I have registered GeometryType to jdbc Configuration as below
GeometryType geometryType = new GeometryType();
configuration.registerTypeOverride(geometryType);
Even this issue is true for Polygon,LineString,Point,MultiPoint,MultiPolygon...
Am I missing any configuration or it is expected behaviour from Geometry Type implementation ?