Annotating the method with the following:
@Transactional(readOnly=false, propagation=Propagation.NESTED)
will cause the transaction to wait until all sub transaction is completed. If any of the sub transaction fails, the global transaction will fail as well causing everything to be rolled back
Labels: spring, transaction
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment