SessionFactoryImpl.GetAllSecondLevelCacheRegions() / IQueryCache Inconsistency

Description

This method appears to return all named query caches, but does not return the standard query cache. For example:

// standard query cache used here
var x = session.CreateCriteria(typeof(User)).SetCacheable(true).List();

// named query cache used here
var y = session.CreateCriteria(typeof(User)).SetCacheable(true).SetCacheRegion("NamedCacheRegion")List();

I realize that there property "SessionFactoryImpl.QueryCache" that provides access to the standard query cache, but it seems inconsistent to me that "SessionFactoryImpl.GetALLSecondLevelCacheRegions()" would return some, but not all of the query caches.

Environment

None

Activity

Fabio Maulo 
April 29, 2011 at 4:05 PM

NH make a clear difference between QueryCache and EntityCache.
GetAllSecondLevelCacheRegions works as explected.

Won't Fix

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 28, 2011 at 3:01 PM
Updated April 29, 2011 at 4:05 PM
Resolved April 29, 2011 at 4:05 PM
Who's Looking?