#993 - ENH: Add flush() to EbeanServer and Model to make it more accessible than the current transaction.flushBatch()

This commit is contained in:
Rob Bygrave
2017-03-13 23:07:17 +13:00
parent 1d99a5c5a4
commit 4d82b86f81
8 changed files with 81 additions and 2 deletions
@@ -295,9 +295,14 @@ public class ScopedTransaction implements SpiTransaction {
return transaction.isBatchFlushOnQuery();
}
@Override
public void flush() throws PersistenceException {
transaction.flush();
}
@Override
public void flushBatch() throws PersistenceException {
transaction.flushBatch();
flush();
}
@Override