mirror of https://github.com/apache/openjpa.git
avoid duplicate event call
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d833950424
commit
f104321da8
|
@ -2633,7 +2633,9 @@ public class StateManagerImpl
|
|||
* for all strategies that don't require flushing.
|
||||
*/
|
||||
void preFlush(boolean logical, OpCallbacks call) {
|
||||
if (isPersistent()) {
|
||||
boolean second = (_flags & FLAG_PRE_FLUSHED) != 0;
|
||||
|
||||
if (isPersistent() && !second) {
|
||||
fireLifecycleEvent(LifecycleEvent.BEFORE_STORE);
|
||||
_flags |= FLAG_PRE_FLUSHED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue