|
For example, methods on the EntityRegionAccessStrategy, CollectionRegionAccessStrategy, NaturalIdRegionAccessStrategy can for the most part all be changed to accept a Session. However, some of the methods on the base contract RegionAccessStrategy cannot. Specifically methods like org.hibernate.cache.spi.access.RegionAccessStrategy#removeAll and org.hibernate.cache.spi.access.RegionAccessStrategy#evictAll are called outside the context of any Session/transaction.
|