The openjpa.MetaDataRepository configuration property controls the configuration of the MetaDataRepository. The following are valid properties:
Preload
: A boolean property. If true, OpenJPA will eagerly load the repository on
EntityManagerFactory creation. As a result, all Entity classes will be eagerly loaded by the JVM.
Once MetaData preloading completes, all locking is removed from the MetaDataRepository and this will
result in a much more scalable repository. If false, the repository will be lazily loaded as Entity
classes are loaded by the JVM. The default value is false.
Example 6.3. Setting the Preload Property on Metadata Repository
<property name="openjpa.MetaDataRepository" value="Preload=true"/>