mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-24 12:17:24 +00:00
fix exceptions thrown from JD lifecycle method
SS does not do exception translation Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
cf184bef64
commit
0c6d3595a8
@ -62,12 +62,12 @@ public String getAttributeDeclarationString() {
|
||||
declaration.append("\t}\n");
|
||||
if ( operationName.equals("insert") ) {
|
||||
convertException(declaration,
|
||||
"jakarta.persistence.EntityExistsException",
|
||||
"org.hibernate.exception.ConstraintViolationException",
|
||||
"jakarta.data.exceptions.EntityExistsException");
|
||||
}
|
||||
else {
|
||||
convertException(declaration,
|
||||
"jakarta.persistence.OptimisticLockException",
|
||||
"org.hibernate.StaleStateException",
|
||||
"jakarta.data.exceptions.OptimisticLockingFailureException");
|
||||
}
|
||||
convertException(declaration,
|
||||
|
Loading…
x
Reference in New Issue
Block a user