[
https://jira.jboss.org/browse/ISPN-458?page=com.atlassian.jira.plugin.sys...
]
Galder Zamarreno resolved ISPN-458.
-----------------------------------
Fix Version/s: (was: 4.1.0.CR1)
Resolution: Won't Fix
Niktia, this code belongs to the Hibernate source code, hence JIRAs about this should be
entered in Hibernate's jira. I copied this JIRA into
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5260 and I will elaborate
further there.
Tweak for query-cache via hibernate.hbm.xml needed
--------------------------------------------------
Key: ISPN-458
URL:
https://jira.jboss.org/browse/ISPN-458
Project: Infinispan
Issue Type: Sub-task
Components: Core API
Affects Versions: 4.0.0.Final
Reporter: Niktia Koksharov
Assignee: Galder Zamarreno
Priority: Critical
In current implementation of hibernate-infinispan we can tune only entity and collection
settings via hibernate.xml.cfg. But tuning in same way for queries needed too. In current
version there are always the same cache region for all queries (look at
org.hibernate.cache.infinispan.InfinispanRegionFactory.buildQueryResultsRegion) and
it's incorrect.
In org.hibernate.cache.infinispan.InfinispanRegionFactory.buildQueryResultsRegion
Replace those lines:
String cacheName = typeOverrides.get(QUERY_KEY).getCacheName();
CacheAdapter cacheAdapter =
CacheAdapterImpl.newInstance(manager.getCache(cacheName));
To:
Cache cache = getCache(regionName, QUERY_KEY, properties);
CacheAdapter cacheAdapter = CacheAdapterImpl.newInstance(cache);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira