intermediate@Transactional Fundamentals
Does readOnly = true prevent a write statement from executing?
No — it's a hint for optimization (skipping dirty-checking, potentially routing to a replica), not an enforced restriction.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response