Transactions

What `@Transactional` actually wraps, and the two ways it surprises people.

  • 7 cards
  • 4 questions
  • About 7 min
  • Difficulty
Share

@Transactional looks like one annotation with one job, and it has two behaviours that surprise almost everyone who reaches for it: what it does with a checked exception, and what happens when you call a transactional method from inside the same class. This topic is both, plus the one propagation value worth knowing beyond the default.

Contents

7 cardsnot started