Uses of Class
jakarta.persistence.PersistenceException
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of PersistenceException in jakarta.persistence
Modifier and TypeClassDescriptionclass
Thrown by the persistence provider whenEntityManager.persist(Object)
is called and the entity already exists.class
Thrown by the persistence provider when an entity reference obtained byEntityManager.getReference
is accessed but the entity does not exist.class
Thrown by the persistence provider when a pessimistic locking conflict occurs that does not result in transaction rollback.class
Thrown by the persistence provider whenQuery.getSingleResult()
orTypedQuery.getSingleResult()
is executed and there is more than one result from the query.class
Thrown by the persistence provider whenQuery.getSingleResult()
orTypedQuery.getSingleResult()
is executed and there is no result to return.class
Thrown by the persistence provider when an optimistic locking conflict occurs.class
Thrown by the persistence provider when a pessimistic locking conflict occurs.class
Thrown by the persistence provider when a query times out and only the statement is rolled back.class
Thrown by the persistence provider whenEntityTransaction.commit()
fails.class
Thrown by the persistence provider when a transaction is required but is not active.