#1240 - ENH: Add support for @Transactional skipCache and label

This commit is contained in:
Rob Bygrave committed 2018-01-22 15:04:13 +13:00
1 parent 51d2e4c600
commit bce745e88d
2 files changed
+41

No files matched your search

@@ -849,6 +849,13 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
private void initNewTransaction(SpiTransaction transaction, TxScope txScope) {
if (txScope.isSkipCache()) {
transaction.setSkipCache(true);
}
String label = txScope.getLabel();
if (label != null) {
transaction.setLabel(label);
}
ProfileLocation profileLocation = txScope.getProfileLocation();
if (profileLocation != null) {
transaction.setProfileLocation(profileLocation);