Uses of Interface
jakarta.persistence.EntityManager
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of EntityManager in jakarta.persistence
Modifier and TypeMethodDescriptionEntityManagerFactory.createEntityManager()
Create a new application-managedEntityManager
.EntityManagerFactory.createEntityManager
(SynchronizationType synchronizationType) Create a new JTA application-managedEntityManager
with the specified synchronization type.EntityManagerFactory.createEntityManager
(SynchronizationType synchronizationType, Map<?, ?> map) Create a new JTA application-managedEntityManager
with the specified synchronization type and map of properties.EntityManagerFactory.createEntityManager
(Map<?, ?> map) Create a new application-managedEntityManager
with the givenMap
specifying property settings.Modifier and TypeMethodDescription<R> R
EntityManagerFactory.callInTransaction
(Function<EntityManager, R> work) Create a new application-managedEntityManager
with an active transaction, and call the given function, passing theEntityManager
to the function.void
EntityManagerFactory.runInTransaction
(Consumer<EntityManager> work) Create a new application-managedEntityManager
with an active transaction, and execute the given function, passing theEntityManager
to the function.