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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidpostProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) 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, setManagedTypes, setMappingResources, setPackagesToScan, setPersistenceUnitPostProcessors, setPersistenceXmlLocation, setPersistenceXmlLocations, setResourceLoader, setSharedCacheMode, setValidationMode
-
Constructor Details
-
MergingPersistenceUnitManager
public MergingPersistenceUnitManager()
-
-
Method Details
-
postProcessPersistenceUnitInfo
protected void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) - Overrides:
postProcessPersistenceUnitInfoin classorg.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
-
isPersistenceUnitOverrideAllowed
protected boolean isPersistenceUnitOverrideAllowed()- Overrides:
isPersistenceUnitOverrideAllowedin classorg.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
-