Removal of QueryMethod functionality

Bug #732611 reported by Timo Westkämper on 2011-03-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

The QueryMethod functionality has been removed, because it overlaps with the support for delegate methods.

More information here : http://source.mysema.com/forum/mvnforum/viewthread_thread,1086

Released in 2.2.0-beta1

Changed in querydsl:
status: New → Fix Committed
status: Fix Committed → Fix Released

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

Here is a simple conversion example.

@QueryExtensions(target=Point.class)
public interface PointOperations {

   @QueryMethod("geo_distance({0},{1})")
   int geoDistance(Point otherPoint);

}

becomes

    @QueryDelegate(Point.class)
    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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers