-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: load of unreferenced collection on cascade
PostPosted: Wed Sep 17, 2008 6:29 pm 
Newbie

Joined: Wed Jul 09, 2008 6:50 pm
Posts: 6
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.