mirror of https://github.com/apache/openjpa.git
OPENJPA-2209: Add comment to AbstractBrokerFactory.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346896 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c120b18eb9
commit
3f03f91eb8
|
@ -866,8 +866,12 @@ public abstract class AbstractBrokerFactory
|
|||
newBroker(_conf.getConnectionUserName(), _conf.getConnectionPassword(),
|
||||
_conf.isConnectionFactoryModeManaged(), _conf.getConnectionRetainModeConstant(), false).close();
|
||||
}
|
||||
// Don't catch any exceptions here because we want to fail-fast if something bad happens when we're preloading.
|
||||
|
||||
// Don't get a MetaDataRepository yet if not preloading because it is possible that someone has extended the MDR
|
||||
// and the extension hasn't been plugged in yet.
|
||||
if (MetaDataRepository.needsPreload(_conf) == true) {
|
||||
// Don't catch any exceptions here because we want to fail-fast if something bad happens when we're
|
||||
// preloading.
|
||||
MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance();
|
||||
mdr.setValidate(MetaDataRepository.VALIDATE_RUNTIME, true);
|
||||
mdr.setResolve(MetaDataRepository.MODE_MAPPING_INIT, true);
|
||||
|
|
Loading…
Reference in New Issue