Igor Vaynberg wrote:

I know it is significantly easier to do this using the criteria api, but I
think it would be better to invest more time and come up with an approach
that can work on hql since ejb3ql is almost exactly the same and so you
would get ejb3 support for free.


And I would be /very/ interested in EJB3 support.

Eelco

Im currently using something like this:

public interface QlConstraint {
        boolean shouldUse();

        /** add ql to the query */
        void onAddQl(StringBuilder hql);

        /** bind parameters */
        void onAddParams(Query q);
}

My dao gets a list of these and loops over them. Its not completely fool
proof yet but it works for simpler quieries.

Igor



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to