What you want is to set up a prefetch:

http://cayenne.apache.org/doc/prefetching.html

You can also do this in Cayenne Modeler when you create a query (the
magnifying glass icon in the toolbar).  If you choose to do this, look
at this page, too:

http://cayenne.apache.org/doc/queries-stored-in-datamap.html

/dev/mrg

On Tue, Jun 3, 2008 at 12:49 PM, Michał Morzywołek <[EMAIL PROTECTED]> wrote:
> Let's say i got class A with collection of class B in it.
> When i read objact a (of class A) from db the collection is not loaded at
> first(due to lazy loading).
> 1. How can i disable lazy loading - so the collection would be always
> loaded?
> 2. How to use resolveFault() or the new prepareForAccess() method to load
> the collection?
>
> Looked into the documentation but i didn't find any explanation :(
> Thank you for all your help
> Mike
>

Reply via email to