Class MergingPersistenceUnitManager
java.lang.Object
org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
org.springframework.data.jpa.support.MergingPersistenceUnitManager
- All Implemented Interfaces:
Aware
,InitializingBean
,ResourceLoaderAware
,LoadTimeWeaverAware
,PersistenceUnitManager
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 Summary
Fields inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
DEFAULT_PERSISTENCE_XML_LOCATION, logger, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_NAME, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_ROOT_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
Methods inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
afterPropertiesSet, getDataSourceLookup, getDefaultDataSource, getDefaultJtaDataSource, getLoadTimeWeaver, getPersistenceUnitInfo, getPersistenceUnitPostProcessors, obtainDefaultPersistenceUnitInfo, obtainPersistenceUnitInfo, preparePersistenceUnitInfos, setDataSourceLookup, setDataSources, setDefaultDataSource, setDefaultJtaDataSource, setDefaultPersistenceUnitName, setDefaultPersistenceUnitRootLocation, setLoadTimeWeaver, setManagedClassNameFilter, setManagedTypes, setMappingResources, setPackagesToScan, setPersistenceUnitPostProcessors, setPersistenceXmlLocation, setPersistenceXmlLocations, setResourceLoader, setSharedCacheMode, setValidationMode
-
Constructor Details
-
MergingPersistenceUnitManager
public MergingPersistenceUnitManager()
-
-
Method Details
-
postProcessPersistenceUnitInfo
- Overrides:
postProcessPersistenceUnitInfo
in classDefaultPersistenceUnitManager
-
isPersistenceUnitOverrideAllowed
protected boolean isPersistenceUnitOverrideAllowed()- Overrides:
isPersistenceUnitOverrideAllowed
in classDefaultPersistenceUnitManager
-