mirror of https://github.com/apache/openjpa.git
OPENJPA-1323 Enhanced to conform to the new spec requirement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbb7e1208a
commit
6485137930
|
@ -82,7 +82,7 @@ public class TestMixedLockManagerRefreshException extends SequencedActionsTest {
|
|||
{Act.TestEmployee, 1, Default_FirstName},
|
||||
|
||||
{Act.RefreshWithLock, 1, LockModeType.NONE },
|
||||
{Act.TestException, 0, TransactionRequiredException.class },
|
||||
{Act.TestException, 0, null },
|
||||
|
||||
{Act.RefreshWithLock, 1, LockModeType.READ },
|
||||
{Act.TestException, 0, TransactionRequiredException.class },
|
||||
|
|
|
@ -752,7 +752,9 @@ public class EntityManagerImpl
|
|||
Map<String, Object> properties) {
|
||||
assertNotCloseInvoked();
|
||||
assertValidAttchedEntity(entity);
|
||||
if (mode != null && mode != LockModeType.NONE) {
|
||||
_broker.assertActiveTransaction();
|
||||
}
|
||||
_broker.assertWriteOperation();
|
||||
|
||||
processLockProperties(pushFetchPlan(), mode, properties);
|
||||
|
|
Loading…
Reference in New Issue