openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r572758 - in /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa: conf/MetaDataCacheMaintenance.java meta/MetaDataModes.java
Date Tue, 04 Sep 2007 17:55:39 GMT
Author: pcl
Date: Tue Sep  4 10:55:39 2007
New Revision: 572758

URL: http://svn.apache.org/viewvc?rev=572758&view=rev
Log:
OPENJPA-344. Increase the footprint of metadata that is gathered during the MetaDataCacheMaintenance
storage process.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java?rev=572758&r1=572757&r2=572758&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java
Tue Sep  4 10:55:39 2007
@@ -95,9 +95,7 @@
 
     public void store() {
         MetaDataRepository repos = conf.getMetaDataRepositoryInstance();
-        repos.setSourceMode(MetaDataRepository.MODE_META
-            | MetaDataRepository.MODE_MAPPING
-            | MetaDataRepository.MODE_QUERY);
+        repos.setSourceMode(MetaDataRepository.MODE_ALL);
         Collection types = repos.loadPersistentTypes(devpath, null);
         for (Iterator iter = types.iterator(); iter.hasNext(); )
             repos.getMetaData((Class) iter.next(), null, true);

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java?rev=572758&r1=572757&r2=572758&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java
Tue Sep  4 10:55:39 2007
@@ -33,4 +33,7 @@
     public static final int MODE_QUERY = 4;
     public static final int MODE_MAPPING_INIT = 8;
     public static final int MODE_ANN_MAPPING = 16;
+
+    public static final int MODE_ALL = MODE_META | MODE_MAPPING | MODE_QUERY 
+        | MODE_MAPPING_INIT | MODE_ANN_MAPPING;
 }



Mime
View raw message