On Wed, May 19, 2010 at 3:20 PM, Marcin Skladaniec <mar...@ish.com.au>wrote:
> Actually I re-read your question. There is no way of specifying a default > prefetch for a given entity. > Some time ago I lodged a confusing feature request, I think 'default > prefetch' can be solution for it. ( > https://issues.apache.org/jira/browse/CAY-1234) > Cheers > > Marcin > > Thank you Marcin, Do you think it is something that could be implemented via Annotations? Perhaps a class level or method annotation @Prefetch("products.orders"); public class Category() { @Prefetch // this could pre-fetch products @Prefetch("orders") // this could pre-fetch products.orders public List<Product> getProducts() { .... } }