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:
Srinivasa Segu 2008-08-08 20:36:31 +00:00
parent 0bbc9463fd
commit 2a5964a540
1 changed files with 1 additions and 1 deletions

View File

@ -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;