Comment 2 for bug 732611

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Here is a simple conversion from QueryMethod form to QueryDelegate form :

Here is a simple conversion example.

public interface PointOperations {

   int geoDistance(Point otherPoint);



    public static NumberExpression<Integer> geoDistance(Path<Point> point, Point other){
        return NumberTemplate.create(Integer.class, "geo_distance({0},{1})", point, new ConstantImpl<Point>(other));

More examples will be provided soon.