se.vgregion.dao.infrastructure.persistence.jpa
Class MergingPersistenceUnitPostProcessor

java.lang.Object
  extended by se.vgregion.dao.infrastructure.persistence.jpa.MergingPersistenceUnitPostProcessor
All Implemented Interfaces:
PersistenceUnitPostProcessor

public class MergingPersistenceUnitPostProcessor
extends Object
implements PersistenceUnitPostProcessor

This merges all JPA entities from multiple jars. To use it, all entities must be listed in their respective persistence.xml files using the tag.

Author:
Anders Asplund - Callista Enterprise, David Rosell - Redpill-Linpro
See Also:
http://forum.springsource.org/showthread.php?t=61763

Constructor Summary
MergingPersistenceUnitPostProcessor()
           
 
Method Summary
 void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
          Post-process the given PersistenceUnitInfo in order to put all entities in a single persistence unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergingPersistenceUnitPostProcessor

public MergingPersistenceUnitPostProcessor()
Method Detail

postProcessPersistenceUnitInfo

public void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
Post-process the given PersistenceUnitInfo in order to put all entities in a single persistence unit.

Specified by:
postProcessPersistenceUnitInfo in interface PersistenceUnitPostProcessor
Parameters:
pui - the chosen PersistenceUnitInfo, as read from persistence.xml. Passed in as MutablePersistenceUnitInfo.


Copyright © 2010. All Rights Reserved.