public class MergingPersistenceUnitManager extends DefaultPersistenceUnitManager
DefaultPersistenceUnitManager
to merge configurations of one persistence unit residing in multiple
persistence.xml
files into one. This is necessary to allow the declaration of entities in seperate modules.DEFAULT_PERSISTENCE_XML_LOCATION, logger, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_NAME, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_ROOT_LOCATION
Constructor and Description |
---|
MergingPersistenceUnitManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isPersistenceUnitOverrideAllowed() |
protected void |
postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui) |
afterPropertiesSet, getDataSourceLookup, getDefaultDataSource, getDefaultJtaDataSource, getLoadTimeWeaver, getPersistenceUnitInfo, getPersistenceUnitPostProcessors, obtainDefaultPersistenceUnitInfo, obtainPersistenceUnitInfo, preparePersistenceUnitInfos, setDataSourceLookup, setDataSources, setDefaultDataSource, setDefaultJtaDataSource, setDefaultPersistenceUnitName, setDefaultPersistenceUnitRootLocation, setLoadTimeWeaver, setMappingResources, setPackagesToScan, setPersistenceUnitPostProcessors, setPersistenceXmlLocation, setPersistenceXmlLocations, setResourceLoader, setSharedCacheMode, setValidationMode
protected void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
postProcessPersistenceUnitInfo
in class DefaultPersistenceUnitManager
protected boolean isPersistenceUnitOverrideAllowed()
isPersistenceUnitOverrideAllowed
in class DefaultPersistenceUnitManager
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.