Package org.jipijapa.plugin.spi
Interface EntityManagerFactoryBuilder
-
public interface EntityManagerFactoryBuilderEntityManagerFactoryBuilder 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.persistence.EntityManagerFactorybuild()BuildEntityManagerFactoryinstancevoidcancel()Cancel the building processing.EntityManagerFactoryBuilderwithValidatorFactory(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 Detail
-
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
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
-
-