I am trying to query the spatial relationships between my objects, but keep getting this exception:
org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node: ( near line 1,
My entities work correctly, as does the mapping. I believe my request has a problem:
SELECT r FROM Regiao r, Imovel i WHERE r.nivel = :nivel AND contains(r.regiao, i.latlng)
If both r.regiao and i.latln are displayed in a GeometryType (one of which is a polygon and the other a point.
P .: When I asked a question, I finally understood this problem.
source
share