-->
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: Transient Member Variables and Re-attaching
PostPosted: Thu Jul 29, 2004 7:56 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
I'm working with detached persistent entities that get placed into an HttpSession, which means they may be serialized in a clustered environment. I'm concerned about sessions getting too large and serializing too much data if the object graph happens to be large (most of my collections and properties are lazy, but if the objects within them have been loaded, they'll get serialized, correct?).

What I'm wondering about is what will happen if I mark the member variable backing a hibernate collection or object reference as "transient." Obviously, the reference to the colleciton or object will be set to "null" when the object is serialized. What will happen later if I try to re-attach the object to a different session?

Will hibernate interpret that as a deletion of the entire collection? Or will an error occur? I'm going to attempt to set up a test to experiment, but I thought others could benefit from my documenting this question. In the mean time, if anyone knows the answer, please chime in!


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.