Class MergingPersistenceUnitManager
java.lang.Object
org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
org.springframework.data.jpa.support.MergingPersistenceUnitManager
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ResourceLoaderAware,- org.springframework.context.weaving.LoadTimeWeaverAware,- org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager
public class MergingPersistenceUnitManager
extends org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
Extends 
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 separate modules.- Author:
- Oliver Gierke
- 
Field SummaryFields inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManagerDEFAULT_PERSISTENCE_XML_LOCATION, logger, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_NAME, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_ROOT_LOCATION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanprotected voidpostProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) Methods inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManagerafterPropertiesSet, getDataSourceLookup, getDefaultDataSource, getDefaultJtaDataSource, getLoadTimeWeaver, getPersistenceUnitInfo, getPersistenceUnitPostProcessors, obtainDefaultPersistenceUnitInfo, obtainPersistenceUnitInfo, preparePersistenceUnitInfos, setDataSourceLookup, setDataSources, setDefaultDataSource, setDefaultJtaDataSource, setDefaultPersistenceUnitName, setDefaultPersistenceUnitRootLocation, setLoadTimeWeaver, setManagedTypes, setMappingResources, setPackagesToScan, setPersistenceUnitPostProcessors, setPersistenceXmlLocation, setPersistenceXmlLocations, setResourceLoader, setSharedCacheMode, setValidationMode
- 
Constructor Details- 
MergingPersistenceUnitManagerpublic MergingPersistenceUnitManager()
 
- 
- 
Method Details- 
postProcessPersistenceUnitInfoprotected void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) - Overrides:
- postProcessPersistenceUnitInfoin class- org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
 
- 
isPersistenceUnitOverrideAllowedprotected boolean isPersistenceUnitOverrideAllowed()- Overrides:
- isPersistenceUnitOverrideAllowedin class- org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
 
 
-