Uses of Interface
jakarta.persistence.EntityManager
Packages that use EntityManager
Package
Description
Jakarta Persistence is the API 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()Create a new application-managedEntityManager.EntityManagerFactory.createEntityManager(SynchronizationType synchronizationType) Create a new JTA application-managedEntityManagerwith the specified synchronization type.EntityManagerFactory.createEntityManager(SynchronizationType synchronizationType, Map<?, ?> map) Create a new JTA application-managedEntityManagerwith the specified synchronization type and map of properties.EntityManagerFactory.createEntityManager(Map<?, ?> map) 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.