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, setValidationModeprotected void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
postProcessPersistenceUnitInfo in class DefaultPersistenceUnitManagerprotected boolean isPersistenceUnitOverrideAllowed()
isPersistenceUnitOverrideAllowed in class DefaultPersistenceUnitManagerCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.