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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    protected void
    postProcessPersistenceUnitInfo(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MergingPersistenceUnitManager

      public MergingPersistenceUnitManager()
  • Method Details

    • postProcessPersistenceUnitInfo

      protected void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui)
      Overrides:
      postProcessPersistenceUnitInfo in class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
    • isPersistenceUnitOverrideAllowed

      protected boolean isPersistenceUnitOverrideAllowed()
      Overrides:
      isPersistenceUnitOverrideAllowed in class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager