-->
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.  [ 2 posts ] 
Author Message
 Post subject: Garbage collection hibernate cache
PostPosted: Fri Oct 08, 2004 10:10 am 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
I am curious how hibernate handles the following:
It loads objectA from the session, loads a list with objects (including objectA), the list is removed in the running environment, thus only keeping a reference to objectA. The objects from the list except objectA are garbage collected by java. How does this reflect to the hibernate cache? Does it keep the objects in the cache? Or is this something I should not worry about because it's transparent to me.

_________________
Dencel
- The sun has never seen a shadow -


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 5:41 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate keep them we do not garbage collect.
You can do session.evict() or session.clear()

_________________
Emmanuel


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

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.