Interface EntityManagerFactoryAware
- All Known Implementing Classes:
JPABusinessDataRepositoryImpl
public interface EntityManagerFactoryAware
Interface to be implemented by classes that need access to the
EntityManagerFactory.
This is typically used in the context of business data repositories.
This class was introduced with the use of aspects for business data repository: A proxy class is generated, such that
JPABusinessDataRepositoryImpl cannot be cast directly. Introducing this interface allows
JPABusinessDataRepositoryImpl to be cast to this interface (See BDRepositoryLocalIT class).-
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.EntityManagerFactory
-
Method Details
-
getEntityManagerFactory
javax.persistence.EntityManagerFactory getEntityManagerFactory()
-