EntityManager#persist(Object)
is called and the entity already exists. The current transaction, if one is
active, will be marked for rollback.
If the entity already exists, the EntityExistsException may be
thrown when the persist operation is invoked, or the EntityExistsException
or another PersistenceException may be thrown at flush or commit time.
The current transaction, if one is active and the persistence context has been joined to it, will be marked for rollback.
EntityManager#persist(Object)
| Access | Constructor and Description |
|---|---|
| public | EntityExistsException()
Constructs a new |
| public | EntityExistsException(String
the detail message. message)Constructs a new |
| public | EntityExistsException(String
the detail message. message, Throwable the cause. cause)Constructs a new |
| public | EntityExistsException(Throwable
the cause. cause)Constructs a new |
| EntityExistsException | back to summary |
|---|---|
| public EntityExistsException() Constructs a new | |
| EntityExistsException | back to summary |
|---|---|
| public EntityExistsException(String message) Constructs a new
| |
| EntityExistsException | back to summary |
|---|---|
| public EntityExistsException(String message, Throwable cause) Constructs a new | |
| EntityExistsException | back to summary |
|---|---|
| public EntityExistsException(Throwable cause) Constructs a new
| |