Interface EntityManagerFactoryBuilder


  • public interface EntityManagerFactoryBuilder
    EntityManagerFactoryBuilder is based on org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder. Represents a 2-phase JPA bootstrap process for building an EntityManagerFactory.
    Author:
    Scott Marlow, Steve Ebersole
    • Method Detail

      • build

        jakarta.persistence.EntityManagerFactory build()
        Build EntityManagerFactory instance
        Returns:
        The built EntityManagerFactory
      • cancel

        void cancel()
        Cancel the building processing. This is used to signal the builder to release any resources in the case of something having gone wrong during the bootstrap process
      • withValidatorFactory

        EntityManagerFactoryBuilder withValidatorFactory​(Object validatorFactory)
        Allows passing in a Jakarta EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory
        Parameters:
        validatorFactory - The ValidatorFactory
        Returns:
        this, for method chaining