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"?
|