intermediateTransactions with @Transactional
Why does calling a @Transactional method from another method in the same class not start a transaction?
@Transactional works via a Spring-generated proxy that intercepts calls to the bean from OUTSIDE — calling `this.method()` from within the same class bypasses the proxy entirely and just runs as a plain Java call, with no transaction ever started.
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