Change OpenJPAEntityManagerFactory.getStoreCache(String) to create the cache on-demand if it doesn't exist. This turns an error condition into functional behavior, so there should be no backward-compat issue.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-04-04 07:34:53 +00:00
parent dd7014a527
commit 690cb80eb9
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ public class EntityManagerFactoryImpl
public StoreCache getStoreCache(String cacheName) {
return new StoreCacheImpl(this, _factory.getConfiguration().
getDataCacheManagerInstance().getDataCache(cacheName));
getDataCacheManagerInstance().getDataCache(cacheName, true));
}
public QueryResultCache getQueryResultCache() {