title: Hibernate 5.1 with Postgis 2.2 geometry columns mapping
body: <p>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.</p>
  
  <p>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:</p>
  
  <pre><code>@javax.persistence.Column(name = "the_geom", columnDefinition = "Geometry")
  public com.vividsolutions.jts.geom.Geometry geom;
  </code></pre>
  
  <p>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?</p>