-->
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: SessionFactory.evict()'s effect on Collection/Query cache
PostPosted: Fri Oct 15, 2004 1:26 pm 
Newbie

Joined: Fri Aug 27, 2004 1:52 pm
Posts: 9
Hibernet 2.1

I'm using Hibernate with SwarmCache as my 2nd level cache. If I make a call to SessionFactory.evict(Foo.class, someID) will this also evict any collections and cached queries in which this object is involved? In looking at the NonstrictReadWriteCache code, I'm guessing that it does not.

The motivation for this question is because I'm trying to do a bunch of evicts after a bulk update performed outside of hibernate. I'm worried about the case where fields have been updated that could affect the sort order of the collections and/or queries.

Any ideas or suggestions other than "don't cache objects for which you would like to do this", or "evict the collections and queries manually"?


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.