Search code examples
hibernatehqlspatialspatial-query

hql spatial ST_MakeEnvelope


Just a "simple" question:

how is the syntax of postgis function ST_MakeEnvelope() in Hibernate HQL?

I couldn't find any documentations after searching 2 hours :/

thanks in advance


Solution

  • my solution was to create a jts polygon with my bounding box coordinates and then i used the hql function:

    within(object.geometry, :polygon) = true