Removal of QueryMethod functionality

Bug #732611 reported by Timo Westkämper
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

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

Released in 2.2.0-beta1

Changed in querydsl:
status: New → Fix Committed
status: Fix Committed → Fix Released
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.

@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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.