OPENJPA-680 - revert changes due to TCK regression.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@685336 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2008-08-12 21:58:19 +00:00
parent f4845dae9b
commit 404cbbf99b
1 changed files with 1 additions and 2 deletions

View File

@ -362,8 +362,7 @@ public class StateManagerImpl
*/
protected boolean load(FetchConfiguration fetch, int loadMode,
BitSet exclude, Object sdata, boolean forWrite) {
if (!forWrite
&& (!isPersistent() || (isNew() && !isFlushed()) || isDeleted()))
if (!forWrite && (!isPersistent() || isNew() || isDeleted()))
return false;
// if any fields being loaded, do state transitions for read