What is the best practice on implementing a transaction restart upon deadlock or lock timeout exceptions when using Spring (specifically the Spring recommended approach: dec
I had the same question several years ago and ended up writing my own solution as an AOP aspect, which ends up looking like this in your code:
@RetryTransaction @Transactional public void doSomething() { .... }