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 {
|
||||
throwing = true;
|
||||
if (em.isOpen() && ((EntityManagerImpl) em).isActive())
|
||||
((EntityManagerImpl) em).setRollbackOnly(re);
|
||||
((EntityManagerImpl) em).setRollbackOnly(ex);
|
||||
} finally {
|
||||
// handle re-entrancy
|
||||
throwing = false;
|
||||
|
|
Loading…
Reference in New Issue