Package org.hibernate.testing.orm.junit
Interface EntityManagerFactoryProducer
- All Known Implementing Classes:
EntityManagerFactoryBasedFunctionalTest
public interface EntityManagerFactoryProducer
Contract for something that can build a SessionFactory.
Used by SessionFactoryScopeExtension to create the
SessionFactoryScope.
Generally speaking, a test class would implement SessionFactoryScopeContainer
and return the SessionFactoryProducer to be used for those tests.
The SessionFactoryProducer is then used to build the SessionFactoryScope
which is injected back into the SessionFactoryScopeContainer
-
Method Summary
-
Method Details
-
produceEntityManagerFactory
EntityManagerFactory produceEntityManagerFactory()
-