When I am on a spring service and I want to update several database tables through spring repositories, do I need to add @Transactional to make sure I am transactional and rollback or is it already there? If yes, do I need to add it to the class level or method?
Asked
Active
Viewed 1.8k times
1 Answers
16
The answer is Yes, you need to add it separately. For more details, please refer:
What is the difference between defining @Transactional on class vs method
and
Spring - @Transactional - What happens in background?
and

gargkshitiz
- 2,130
- 17
- 19