mirror of https://github.com/apache/openjpa.git
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:
parent
a3b0778071
commit
8fc5924617
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue