Hi all,
I was wondering: since Criteria and Query share methods like setCacheable, setMaxResults, list etc, why arent they just implement the same interface for it? The signatures could be changed to return instances of that interface to keep allowing chaining of method calls.
This occured to me because i had to create duplicate methods in my session EJBs; i usually construct the query/criteria object while on the web tier, then pass it over to the business/data access which provides things like paging etc. Of course i could create wrapper classes...
Manos
|