The point definition in JPA is
@Column(name = "location")
private Point location;
The generated class definition by Querydsl annotation processor is
public final ComparablePath<org.locationtech.jts.geom.Point> location = createComparable("location", org.locationtech.jts.geom.Point.class);
Now I want to find distance between two points and if that is less than certain value. As per Querydsl the query should be
query.where(product.location.distance(point).lt(5.0));
However location being a ComparablePath I am not getting the distance method. Also not able to find a way to find the underlying Point object.
- QueryDSL version 5.0.0
- Hibernate Spatial 5.6.8.Final
- SpringBoot 2.7.3