FAQ
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 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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupuser @
categoriescayenne
postedJun 3, '08 at 4:50p
activeJun 3, '08 at 5:41p
posts2
users2
websitecayenne.apache.org

People

Translate

site design / logo © 2023 Grokbase