[ http://216.121.112.228/browse/NH-2682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabio Maulo closed NH-2682.
---------------------------
Resolution: Won't Fix
NH make a clear difference between QueryCache and EntityCache.
GetAllSecondLevelCacheRegions works as explected.
> SessionFactoryImpl.GetAllSecondLevelCacheRegions() / IQueryCache Inconsistency
> ------------------------------------------------------------------------------
>
> Key: NH-2682
> URL: http://216.121.112.228/browse/NH-2682
> Project: NHibernate
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.0.0.GA
> Reporter: Dana Naideth
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|