OPENJPA-506

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@617363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-02-01 07:36:31 +00:00
parent f12c0926de
commit d5fed70238
1 changed files with 1 additions and 1 deletions

View File

@ -2778,7 +2778,7 @@ public class StateManagerImpl
// BEFORE_PERSIST is handled during Broker.persist and Broker.attach
if (isDeleted())
fireLifecycleEvent(LifecycleEvent.BEFORE_DELETE);
else
else if (!(isNew() && !isFlushed()))
fireLifecycleEvent(LifecycleEvent.BEFORE_UPDATE);
_flags |= FLAG_PRE_FLUSHED;
}