This is a way noob question, but... I couldn't figure it out from the manual...
I have a <class ... lazy="true">. What exactly are the semantics of this? I gather that it causes something(s) to happen lazily, i.e. demand-driven (but by what, exactly?), which otherwise would happen eagerly, i.e. at load() time, but that's as far as my understanding goes.
Does the whole object get reconstituted at once, say, when an accessor is first called for any of its properties? Or is a separate SQL query made for each property if and when that property's accessor is called?
When is it safe to close() the session in which a lazy object was loaded?
Thanks,
~ mark
|