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