Spring Data Jpa

org.springframework.data.jpa.support
Class MergingPersistenceUnitManager

java.lang.Object
  extended by org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
      extended by org.springframework.data.jpa.support.MergingPersistenceUnitManager
All Implemented Interfaces:
InitializingBean, ResourceLoaderAware, LoadTimeWeaverAware, PersistenceUnitManager

public class MergingPersistenceUnitManager
extends 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 seperate modules.

Author:
Oliver Gierke
See Also:
http://jira.springframework.org/browse/SPR-2598

Field Summary
 
Fields inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
DEFAULT_PERSISTENCE_XML_LOCATION, ORIGINAL_DEFAULT_PERSISTENCE_UNIT_ROOT_LOCATION
 
Constructor Summary
MergingPersistenceUnitManager()
           
 
Method Summary
protected  boolean isPersistenceUnitOverrideAllowed()
           
protected  void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
           
 
Methods inherited from class org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager
afterPropertiesSet, getDataSourceLookup, getDefaultDataSource, getLoadTimeWeaver, getPersistenceUnitInfo, getPersistenceUnitPostProcessors, obtainDefaultPersistenceUnitInfo, obtainPersistenceUnitInfo, preparePersistenceUnitInfos, setDataSourceLookup, setDataSources, setDefaultDataSource, setDefaultPersistenceUnitRootLocation, setLoadTimeWeaver, setPersistenceUnitPostProcessors, setPersistenceXmlLocation, setPersistenceXmlLocations, setResourceLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergingPersistenceUnitManager

public MergingPersistenceUnitManager()
Method Detail

postProcessPersistenceUnitInfo

protected void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
Overrides:
postProcessPersistenceUnitInfo in class DefaultPersistenceUnitManager

isPersistenceUnitOverrideAllowed

protected boolean isPersistenceUnitOverrideAllowed()

Spring Data Jpa

Copyright © 2011-2012 SpringSource. All Rights Reserved.