mirror of https://github.com/apache/openjpa.git
OPENJPA-166 - Fix to use the translated exception as the cause for rollback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0bbc9463fd
commit
2a5964a540
|
@ -68,7 +68,7 @@ public class PersistenceExceptions
|
||||||
try {
|
try {
|
||||||
throwing = true;
|
throwing = true;
|
||||||
if (em.isOpen() && ((EntityManagerImpl) em).isActive())
|
if (em.isOpen() && ((EntityManagerImpl) em).isActive())
|
||||||
((EntityManagerImpl) em).setRollbackOnly(re);
|
((EntityManagerImpl) em).setRollbackOnly(ex);
|
||||||
} finally {
|
} finally {
|
||||||
// handle re-entrancy
|
// handle re-entrancy
|
||||||
throwing = false;
|
throwing = false;
|
||||||
|
|
Loading…
Reference in New Issue