Skip dirty check for nontransactional, runtime-enhanced instances

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2008-07-14 14:33:59 +00:00
parent 436eefcbba
commit 854eda8a19
1 changed files with 3 additions and 1 deletions

View File

@ -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,6 +837,8 @@ 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;
} }