Spring JPA - How to rollback multiple services with @Transactional

Viewed 42

We have a controller that calls a lot of services, which one has a @Transaction annotation. Thats a problem because if we have any errors in one of those services we dont have rollback of all of them.

Is there another annotation that help to handle it? or should i remove @transaction from services and move it to controller?

0 Answers
Related