rolling back transaction

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

0 comments:

Newer Post Older Post Home

Blogger Template by Blogcrowds