From 8fc59246172b643d9dd517bf4419167693d9ddcf Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Tue, 4 Sep 2007 17:55:39 +0000 Subject: [PATCH] OPENJPA-344. Increase the footprint of metadata that is gathered during the MetaDataCacheMaintenance storage process. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@572758 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/conf/MetaDataCacheMaintenance.java | 4 +--- .../src/main/java/org/apache/openjpa/meta/MetaDataModes.java | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java b/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java index ada4d74dd..1d6380f10 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/conf/MetaDataCacheMaintenance.java @@ -95,9 +95,7 @@ public class MetaDataCacheMaintenance { 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); diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java index 743d903a7..3210b0598 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/MetaDataModes.java @@ -33,4 +33,7 @@ public interface MetaDataModes { 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; }