mirror of https://github.com/apache/openjpa.git
Revert changes to exclude non-transactional states from dirty checking
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
854eda8a19
commit
94814adc39
|
@ -811,7 +811,7 @@ public class StateManagerImpl
|
||||||
public void dirtyCheck() {
|
public void dirtyCheck() {
|
||||||
if (!needsDirtyCheck())
|
if (!needsDirtyCheck())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SaveFieldManager saved = getSaveFieldManager();
|
SaveFieldManager saved = getSaveFieldManager();
|
||||||
if (saved == null)
|
if (saved == null)
|
||||||
throw new InternalException(_loc.get("no-saved-fields",
|
throw new InternalException(_loc.get("no-saved-fields",
|
||||||
|
@ -837,8 +837,6 @@ public class StateManagerImpl
|
||||||
return false;
|
return false;
|
||||||
if (isNew() && !isFlushed())
|
if (isNew() && !isFlushed())
|
||||||
return false;
|
return false;
|
||||||
if (!isTransactional())
|
|
||||||
return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue