Apparently with Hibernate 5, the geography type is supported. I've searched a lot, but found close to nothing related to the geography points.
What I want to do is the following:
Save Long/Lat Points in the database table, e.g.
ST_GeomFromText('POINT(6.463471 52.484832)', 4326)
Perform queues to check if the Point is in a Long/Lat rectangle like :
WHERE point && ST_MakeEnvelope (5.440433, 39.480434, 8.464680, 55.486190, 4326)
I'm using PostgreSQL and PostGIS.
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.
@Type(type="org.hibernate.spatial.GeometryType")
Is not a point regarding Long/Lat
Is there any documentation regarding this (note: not geometry points).