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
This commit is contained in:
Patrick Linskey 2007-09-04 17:55:39 +00:00
parent a3b0778071
commit 8fc5924617
2 changed files with 4 additions and 3 deletions

View File

@ -95,9 +95,7 @@ public class MetaDataCacheMaintenance {
public void store() { public void store() {
MetaDataRepository repos = conf.getMetaDataRepositoryInstance(); MetaDataRepository repos = conf.getMetaDataRepositoryInstance();
repos.setSourceMode(MetaDataRepository.MODE_META repos.setSourceMode(MetaDataRepository.MODE_ALL);
| MetaDataRepository.MODE_MAPPING
| MetaDataRepository.MODE_QUERY);
Collection types = repos.loadPersistentTypes(devpath, null); Collection types = repos.loadPersistentTypes(devpath, null);
for (Iterator iter = types.iterator(); iter.hasNext(); ) for (Iterator iter = types.iterator(); iter.hasNext(); )
repos.getMetaData((Class) iter.next(), null, true); repos.getMetaData((Class) iter.next(), null, true);

View File

@ -33,4 +33,7 @@ public interface MetaDataModes {
public static final int MODE_QUERY = 4; public static final int MODE_QUERY = 4;
public static final int MODE_MAPPING_INIT = 8; public static final int MODE_MAPPING_INIT = 8;
public static final int MODE_ANN_MAPPING = 16; 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;
} }