title: Use PostGIS geography point with hibernate spatial 5 in spring boot
body: <p>Apparently with Hibernate 5, the geography type is supported. I've searched a lot, but found close to nothing related to the geography points.</p>
  
  <p>What I want to do is the following:</p>
  
  <ol>
  <li><p>Save Long/Lat Points in the database table, e.g. <code>ST_GeomFromText('POINT(6.463471 52.484832)', 4326)</code></p></li>
  <li><p>Perform queues to check if the Point is in a Long/Lat rectangle like :</p>
  
  <p><code>WHERE  point &amp;&amp; ST_MakeEnvelope (5.440433, 39.480434, 8.464680, 55.486190, 4326)</code></p></li>
  </ol>
  
  <p>I'm using <strong>PostgreSQL</strong> and <strong>PostGIS</strong>.</p>
  
  <p>I just cannot find which type of column annotation for hibernate I have to use to get Long/Lat Points, and also how to perform above query. </p>
  
  <pre><code>@Type(type="org.hibernate.spatial.GeometryType")
  </code></pre>
  
  <p>Is not a point regarding Long/Lat</p>
  
  <p>Is there any documentation regarding this (note: not geometry points).</p>