Package org.jipijapa.plugin.spi
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 Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagerFactorybuild()BuildEntityManagerFactoryinstancevoidcancel()Cancel the building processing.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
-
Method Details
-
build
jakarta.persistence.EntityManagerFactory build()BuildEntityManagerFactoryinstance- 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
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
-