Uses of Interface
jakarta.persistence.EntityManager
Packages that use EntityManager
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
-
Uses of EntityManager in jakarta.persistence
Methods in jakarta.persistence that return EntityManagerModifier and TypeMethodDescriptionEntityManagerFactory.createEntityManager(EntityManager.CreationOption... options) Create a new application-managedEntityManager.EntityManagerFactory.createEntityManager(SynchronizationType synchronizationType, Map<?, ?> properties) Create a new application-managed JTAEntityManagerwith the specified synchronization type and given property settings.EntityManagerFactory.createEntityManager(Map<?, ?> properties) Create a new application-managedEntityManagerwith the givenMapspecifying property settings.Method parameters in jakarta.persistence with type arguments of type EntityManagerModifier and TypeMethodDescription<R> REntityManagerFactory.callInTransaction(Function<EntityManager, R> work) Create a new application-managedEntityManagerwith an active transaction, and call the given function, passing theEntityManagerto the function.voidEntityManagerFactory.runInTransaction(Consumer<EntityManager> work) Create a new application-managedEntityManagerwith an active transaction, and execute the given function, passing theEntityManagerto the function.