Hi,
I am saving an object (default-cascade="persist"), that has multiple collections. Some of these collections were "read" intentionally prior to the save, but others were not. However during persist, the untouched collections get hydrated for no reason I can think of. If they were not touched doesn't that imply that there would be no changes to check for? Or perhaps I am missing something.
Some of these collections are expensive to retrieve, but I do want a dirty-check if they have been intentionally hydrated.
Please advise if there is some way to obviate a query during persist if the collection has not been initialized. Thanks!
Debra
|