当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
PersistenceUnitPostProcessor (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.orm.jpa.persistenceunit
Interface PersistenceUnitPostProcessor
public interface PersistenceUnitPostProcessor
Callback interface for post-processing a JPA PersistenceUnitInfo.
Implementations can be registered with a DefaultPersistenceUnitManager
or via a LocalContainerEntityManagerFactoryBean.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
DefaultPersistenceUnitManager.setPersistenceUnitPostProcessors(org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor[])
,
LocalContainerEntityManagerFactoryBean.setPersistenceUnitPostProcessors(org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor[])
postProcessPersistenceUnitInfo
void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui)
- Post-process the given PersistenceUnitInfo, for example registering
further entity classes and jar files.
- Parameters:
pui
- the chosen PersistenceUnitInfo, as read from persistence.xml
.
Passed in as MutablePersistenceUnitInfo.
Copyright © 2002-2007 The Spring Framework.