EntityManager.getReference
is accessed but the entity does not exist. Thrown when
EntityManager.refresh is called and the
object no longer exists in the database.
Thrown when EntityManager.lock is used with
pessimistic locking is used and the entity no longer exists in the database.
The current transaction, if one is active and the persistence context has been joined to it, will be marked for rollback.
EntityManager#getReference(Class, Object), EntityManager#refresh(Object), EntityManager#refresh(Object, LockModeType), EntityManager#refresh(Object, java.util.Map) , EntityManager#refresh(Object, LockModeType, java.util.Map) , EntityManager#lock(Object, LockModeType), EntityManager#lock(Object, LockModeType, java.util.Map)
| Access | Constructor and Description |
|---|---|
| public | EntityNotFoundException()
Constructs a new |
| public | EntityNotFoundException(Exception cause)
Constructs a new |
| public | EntityNotFoundException(String
the detail message. message)Constructs a new |
| public | EntityNotFoundException(String
the detail message. message, Exception cause)Constructs a new |
| EntityNotFoundException | back to summary |
|---|---|
| public EntityNotFoundException() Constructs a new | |
| EntityNotFoundException | back to summary |
|---|---|
| public EntityNotFoundException(Exception cause) Constructs a new | |
| EntityNotFoundException | back to summary |
|---|---|
| public EntityNotFoundException(String message) Constructs a new
| |
| EntityNotFoundException | back to summary |
|---|---|
| public EntityNotFoundException(String message, Exception cause) Constructs a new
| |