You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A @Transactional(propagation = Transactional.Propagation.NESTED) should create a new transaction, if there's an existing one, according to the documentation of NESTED:
Execute within a nested transaction if a current transaction exists
It should create a new nested TX if one exists. Nested TX is pretty much just using snapshots.
Not every TX managers support nested TXs.
Execute within a nested transaction if a current transaction exists,
* behave like {@link Propagation#REQUIRED} otherwise. There is no
* analogous feature in EJB.
* <p><b>NOTE:</b> Actual creation of a nested transaction will only work on
* specific transaction managers. Out of the box, this only applies to JDBC
* when working on a JDBC 3.0 driver. Some JTA providers might support
* nested transactions as well.
Expected Behavior
A
@Transactional(propagation = Transactional.Propagation.NESTED)
should create a new transaction, if there's an existing one, according to the documentation of NESTED:Actual Behaviour
The existing transaction seems to be reused. See the relevant code in AbstractTransactionOperations
Steps To Reproduce
nested-transaction
-3
No nested transaction is opened. Transaction closes with the outermost one.
Environment Information
Example Application
No response
Version
4.7.6
The text was updated successfully, but these errors were encountered: