I used this annotation successfully for a Dao class. And rollback works for tests.
But now I need to rollback real code, not just tests. There are special annotatio
For me rollbackFor was not enough, so I had to put this and it works as expected:
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = Exception.class)
I hope it helps :-)