openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r644635 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java
Date Fri, 04 Apr 2008 07:34:54 GMT
Author: pcl
Date: Fri Apr  4 00:34:53 2008
New Revision: 644635

URL: http://svn.apache.org/viewvc?rev=644635&view=rev
Log:
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.

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java?rev=644635&r1=644634&r2=644635&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java
Fri Apr  4 00:34:53 2008
@@ -125,7 +125,7 @@
 
     public StoreCache getStoreCache(String cacheName) {
         return new StoreCacheImpl(this, _factory.getConfiguration().
-            getDataCacheManagerInstance().getDataCache(cacheName));
+            getDataCacheManagerInstance().getDataCache(cacheName, true));
     }
 
     public QueryResultCache getQueryResultCache() {



Mime
View raw message