[hibernate-commits] Hibernate SVN: r14122 - core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Oct 19 15:27:21 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-10-19 15:27:21 -0400 (Fri, 19 Oct 2007)
New Revision: 14122
Modified:
core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
Log:
Use CacheHelper instead of making direct call
Modified: core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java
===================================================================
--- core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19 14:39:47 UTC (rev 14121)
+++ core/trunk/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/BasicRegionAdapter.java 2007-10-19 19:27:21 UTC (rev 14122)
@@ -188,9 +188,11 @@
Map result = new HashMap();
Set childrenNames = CacheHelper.getChildrenNames(jbcCache, regionFqn);
for (Object childName : childrenNames) {
- result.put(childName, jbcCache.get(new Fqn(regionFqn, childName), ITEM));
+ result.put(childName, CacheHelper.get(jbcCache,regionFqn, childName));
}
return result;
+ } catch (CacheException e) {
+ throw e;
} catch (Exception e) {
throw new CacheException(e);
}
More information about the hibernate-commits
mailing list