#941 - @Transactional( type = TxType.MANDATORY ) creates a new transaction even if there is one available

This commit is contained in:
Rob Bygrave committed 2017-01-11 22:41:22 +13:00
1 parent 3fb497b651
commit 5ad9a611f9
2 files changed
+49 -1

No files matched your search

@@ -692,7 +692,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
if (t == null) {
throw new PersistenceException("Transaction missing when MANDATORY");
}
return true;
return false;
case NEVER:
if (t != null) {