Supposing I mark a method @Transactional(rollbackFor = PersistenceException.class) in my Service layer and have a catch block as follows within the method.
Problem with @Transactional rollbackFor Hi all, I am currently stuck with the following problem. My method is marked with the @Transactional annotation. So far so good. However, I want to rollback ...
@Transactional and specified rollbackFor Exceptions I'm having a problem getting rollback to work for specified exceptions. If I force my method to throw RuntimeException then the transaction is rolled back successfully. ...
Hi, I am using spring transaction annotation and it is causing pain for me to set the rollback flag on each and every file (as shown below) @Transactional(rollbackFor=Exception.class) Is ...