Skip to content

Commit

Permalink
For #3363 disable flushOnQuery before BeanPersistAdapter post-process…
Browse files Browse the repository at this point in the history
…ors (#3367)
  • Loading branch information
rbygrave authored Mar 21, 2024
1 parent 0b11c54 commit 582fec7
Showing 1 changed file with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -919,21 +919,27 @@ public boolean isNotifyCache() {
}

private void controllerPost() {
switch (type) {
case INSERT:
controller.postInsert(this);
break;
case UPDATE:
controller.postUpdate(this);
break;
case DELETE_SOFT:
controller.postSoftDelete(this);
break;
case DELETE:
controller.postDelete(this);
break;
default:
break;
boolean old = transaction.isFlushOnQuery();
transaction.setFlushOnQuery(false);
try {
switch (type) {
case INSERT:
controller.postInsert(this);
break;
case UPDATE:
controller.postUpdate(this);
break;
case DELETE_SOFT:
controller.postSoftDelete(this);
break;
case DELETE:
controller.postDelete(this);
break;
default:
break;
}
} finally {
transaction.setFlushOnQuery(old);
}
}

Expand Down

0 comments on commit 582fec7

Please sign in to comment.