Glossary: Spring Boot Beyond the Basics
@Transactional
Also written: Transactional, readOnly
An annotation that runs a whole service method in one transaction: committed when it returns, rolled back if it throws a runtime exception. `readOnly = true` suits methods that only read.