mirror of https://github.com/apache/openjpa.git
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:
parent
f12c0926de
commit
d5fed70238
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue