mirror of https://github.com/apache/openjpa.git
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:
parent
f4845dae9b
commit
404cbbf99b
|
@ -362,8 +362,7 @@ public class StateManagerImpl
|
||||||
*/
|
*/
|
||||||
protected boolean load(FetchConfiguration fetch, int loadMode,
|
protected boolean load(FetchConfiguration fetch, int loadMode,
|
||||||
BitSet exclude, Object sdata, boolean forWrite) {
|
BitSet exclude, Object sdata, boolean forWrite) {
|
||||||
if (!forWrite
|
if (!forWrite && (!isPersistent() || isNew() || isDeleted()))
|
||||||
&& (!isPersistent() || (isNew() && !isFlushed()) || isDeleted()))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// if any fields being loaded, do state transitions for read
|
// if any fields being loaded, do state transitions for read
|
||||||
|
|
Loading…
Reference in New Issue