Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] ReadWriteCache not unlocking collections

Jesse Napier

2008-01-21

Replies: Find Java Web Hosting

Author LoginPost Reply

When updating a collection that is in the ReadWriteCache, the collection is never unlocked from the cache. This causes subsequent requests after an update to hit the database again.  It is my understanding that items in the ReadWriteCache should not be invalidated from the cache when the object is flushed.  If this is correct then here is a patch that updates the collection in the cache the same way that entities are updated.  Would have posted to jira but its down.

 

Jesse

 

 

 

 

 

 


Attachment: CollectionAction_unlock.patch (zipped)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.