mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#23 - Use updated PostCommit to send ChangeLog changes. Use PreCommit to flush last ChangeLog changes at PreCommit
This commit is contained in:
@@ -159,7 +159,7 @@ public class SpringJdbcTransactionManager implements ExternalTransactionManager
|
||||
@Override
|
||||
public void beforeCommit(boolean readOnly) {
|
||||
if (!readOnly) {
|
||||
transaction.flushBatch();
|
||||
transaction.preCommit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,12 +168,12 @@ public class SpringJdbcTransactionManager implements ExternalTransactionManager
|
||||
switch (status) {
|
||||
case STATUS_COMMITTED:
|
||||
log.debug("Spring Txn [{}] committed", transaction.getId());
|
||||
transactionManager.notifyOfCommit(transaction);
|
||||
transaction.postCommit();
|
||||
break;
|
||||
|
||||
case STATUS_ROLLED_BACK:
|
||||
log.debug("Spring Txn [{}] rollback", transaction.getId());
|
||||
transactionManager.notifyOfRollback(transaction, null);
|
||||
transaction.postRollback(null);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user