
Tag archives for rollback
Often, developers forgotten the transactional behaviour of proxies Spring:
- by default, the transaction is rollbacked only in the case of runtime, unchecked exceptions (an instance or subclass of RuntimeException) and for Errors;
- the transaction is not rollbacked if a checked exception is thrown from a transactional method.
A good practice is to create 2 types of checked exceptions extending Exception:
- ...more»
