Thanks for answering so quick! Ok, so if my object is loaded partial, I have to care for the loading of the objects in the collection myself, haven�t I?
I tried out using lazy loading by making a "System.out." within the set-Methods of those attributes, that belong to lazy loaded objects. Although I can not reference those objects (what I expect - because of the lazy loading), I get this output. For what reason does castor load them? >>-----Urspr�ngliche Nachricht----- >>Von: priyapravas [mailto:[EMAIL PROTECTED] >>Gesendet: Mittwoch, 11. Juni 2003 15:56 >>An: [EMAIL PROTECTED] >>Betreff: Re: [castor-dev] i do not understand lazy loading >> >>The former is a correct assumption. Lazy loading basically means partial >>loading of an object. >> >>-PP >> >>> -----Original Message----- >>> From: Tatjana Manych [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, June 11, 2003 7:14 PM >>> To: [EMAIL PROTECTED] >>> Subject: [castor-dev] i do not understand lazy loading >>> >>> >>> Hi, I guess I did not really understand castors lazy loading. >>> Hope someone can help me... >>> >>> I found this on http://castor.exolab.org/castor-one.html#Lazy-Loading: >>> "The elements in the collection are only loaded when the application >>> asks for the object from the collection, using, for example, >>> iterator.next()." >>> >>> Did I get the following right? >>> For example: >>> I have a person and this person has a collection of its addresses. >>> >>> For the case that I use lazy-loading for this address-collection in >>> person: >>> I load a person from the database and castor does NOT load the >>> address-objects into the collection? >>> But as soon as I reference one address (by using an iterator), castor >>> gets this object (with all its attributes) from the database? >>> Or do I have to care for the loading of the addresses into the >>> collection myself? >>> >>> Thanks for help... >>> >>> ----------------------------------------------------------- >>> If you wish to unsubscribe from this mailing, send mail to >>> [EMAIL PROTECTED] with a subject of: >>> unsubscribe castor-dev >>> >>> >> >>----------------------------------------------------------- >>If you wish to unsubscribe from this mailing, send mail to >>[EMAIL PROTECTED] with a subject of: >> unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
