-->
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: When does reattachment occur?
PostPosted: Thu Feb 05, 2009 7:03 pm 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
So, if I have the following scenario when using Ehcache.

open session a
load object a using criteria query (assume eagerly loaded)
close session a

open session b
load object a using criteria query (2nd level cache hit)
close session b

Can anybody tell me is explicit reattachment necessary or is the object attached to session b when it's loaded even when it comes out of ehcache and what put it in ehcache is the earlier session a.


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.