Interface EntityManagerFactoryProducer

  • All Known Implementing Classes:

    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
    See Also:
    EntityManagerFactoryExtension, EntityManagerFactoryScope
    • Method Detail

      • produceEntityManagerFactory

        jakarta.persistence.EntityManagerFactory produceEntityManagerFactory()