Documentation for hibernate 5.1 spatial is not yet released (AFAIK) and I'm trying to persist entities with JST geometries fields to PostgreSQL 9.5 + Postgis 2.2, without any luck.
I've also noticed that there is no org.hibernate.spatial package in hibernate-core-5.1.0. I've tried variations of the following annotation:
@javax.persistence.Column(name = "the_geom", columnDefinition = "Geometry")
public com.vividsolutions.jts.geom.Geometry geom;
When columnDefinition is set to "Point" I get "column "the_geom" is of type point but expression is of type bytea". In hibernate spatial 4 documentation it is said that the @Type annotation would not be needed from releases 5+, but what should be used instead? How to store the geom as a valid Postgis geometry?