Expert |
|
Joined: Wed Apr 06, 2005 5:03 pm Posts: 273 Location: Salt Lake City, Utah, USA
|
1. It shouldn't be hard to just try this out and see, but I believe only the object itself will be initialized, collections will still remain lazy-loaded (won't load until you ask for them).
2. One use-case for this behavior is deleting objects. If you have to load the entire object before deleting it, it's two round-trips. Since load() returns a proxy (doesn't hit the database), you can then delete it, and no select occurs before the delete. You can use get() if you want it to be loaded immediately.
|
|