The Strong Programmer
The Strong Programmer

Reputation: 677

Is Spring @Service transactional?

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?

Upvotes: 17

Views: 21347

Answers (1)

Related Questions