I have a problem to persist a geometric data in the database (Postgres) I read in the forums and documentation and did not find anything about it, can someone give me some help?
Libs:
pom.xml with versions
<hibernate.envers.version>4.3.11.Final</hibernate.envers.version>
<hibernate.spatial.version>4.3.1-52N</hibernate.spatial.version>
<hibernate.validator>4.3.2.Final</hibernate.validator>
<hibernate.em.version>4.3.11.Final</hibernate.em.version>
Entity property
@Column(name="the_geom" , columnDefinition = "Geometry", nullable = true)
@Type(type = "org.hibernate.spatial.GeometryType")
private Geometry theGeom;
Error:
Can not infer an SQL type to be used for an instance of
org.postgis.PGgeometry
. UsesetObject()
with a Types value explicit to specify the type to use.