Re: Default Prefetching

2010-05-19 Thread Lachlan Deck
On 19/05/2010, at 5:30 PM, Gary Jarrel wrote: > 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("

Re: Default Prefetching

2010-05-19 Thread Gary Jarrel
On Wed, May 19, 2010 at 3:20 PM, Marcin Skladaniec 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.

Re: Default Prefetching

2010-05-18 Thread Marcin Skladaniec
10 2:11 PM, Gary Jarrel wrote: Hi All Is there a way to define default prefetching on a Persistent object? Eg: If I have: Category -> Products -> Orders I want to call category.getProducts() and automatically prefetch all the Orders for the products which are returned? Thank you Gary

Re: Default Prefetching

2010-05-18 Thread Marcin Skladaniec
.org/doc30/prefetching.html All best Marcin On 19/05/10 2:11 PM, Gary Jarrel wrote: Hi All Is there a way to define default prefetching on a Persistent object? Eg: If I have: Category -> Products -> Orders I want to call category.getProducts() and automatically prefetch all th

Default Prefetching

2010-05-18 Thread Gary Jarrel
Hi All Is there a way to define default prefetching on a Persistent object? Eg: If I have: Category -> Products -> Orders I want to call category.getProducts() and automatically prefetch all the Orders for the products which are returned? Thank you Gary