hibernate-users

[Prev] Thread [Next]  |  [Prev] Date [Next]

[hibernate-users] When does reattachment occur? Robert Nicholson Thu Feb 05 15:00:59 2009

So, if I have the following scenario when using Ehcache.

open session a
load object a using criteria query
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.

_______________________________________________
hibernate-users mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/hibernate-users