Uses of Interface
jakarta.persistence.EntityManagerFactory
Packages that use EntityManagerFactory
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
Defines an SPI for integrating with the persistence provider
and with the Jakarta EE platform.
-
Uses of EntityManagerFactory in jakarta.persistence
Methods in jakarta.persistence that return EntityManagerFactoryModifier and TypeMethodDescriptionstatic EntityManagerFactoryPersistence.createEntityManagerFactory(PersistenceConfiguration configuration) Create and return anEntityManagerFactoryfor the named persistence unit, using the given properties.static EntityManagerFactoryPersistence.createEntityManagerFactory(String unitName) Create and return anEntityManagerFactoryfor the named persistence unit.static EntityManagerFactoryPersistence.createEntityManagerFactory(String unitName, Map<?, ?> properties) Create and return anEntityManagerFactoryfor the named persistence unit, using the given properties.PersistenceConfiguration.createEntityManagerFactory()Create a newEntityManagerFactorybased on this configuration.EntityHandler.getEntityManagerFactory()The entity manager factory which created thisEntityHandler. -
Uses of EntityManagerFactory in jakarta.persistence.spi
Methods in jakarta.persistence.spi that return EntityManagerFactoryModifier and TypeMethodDescriptionPersistenceProvider.createContainerEntityManagerFactory(PersistenceUnitInfo info, Map<?, ?> properties) Called by the Jakarta EE container to create a newEntityManagerFactoryfor the persistence unit with the given metadata, optionally specifying configuration properties which override the settings specified in the givenPersistenceUnitInfo.PersistenceProvider.createEntityManagerFactory(PersistenceConfiguration configuration) Called byPersistenceclass to create a newEntityManagerFactoryfor a persistence unit with the given programmatic configuration.PersistenceProvider.createEntityManagerFactory(String unitName, Map<?, ?> properties) Called byPersistenceclass to create a newEntityManagerFactoryfor the persistence unit with the given name, optionally specifying configuration properties which override the settings specified in thepersistence.xmlfile for the given persistence unit.