advanced~4h

Transactions — @Transactional, Propagation & Isolation

Every persistence operation in this course happens inside a transaction — this chapter covers exactly how @Transactional creates and manages it, and the two sharp edges (self-invocation, checked-exception rollback) that surprise most developers at least once.

Learning objectives

  • Explain why calling an @Transactional method from within the same class silently skips transactional behavior.
  • Choose the correct propagation type (REQUIRED, REQUIRES_NEW, NESTED) for a given nested-call scenario.
  • Explain why checked exceptions don't trigger automatic rollback by default, and how to fix that.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.

Transactions — @Transactional, Propagation & Isolation

Next Step

Continue to N+1 Queries & Fetching Strategies — JOIN FETCH, Entity Graph, Batch Fetch← Back to all Spring Data JPA & Hibernate Mastery chapters