Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
9 lines
667 B
Plaintext
9 lines
667 B
Plaintext
seeded authors: 3
|
|
1. no @Transactional, exception after 2 inserts -> author persisted: true, book persisted: true
|
|
2. @Transactional, RuntimeException -> author persisted: false, book persisted: false
|
|
3. @Transactional, checked IOException -> author persisted: true, book persisted: true
|
|
4. @Transactional(rollbackFor=Exception.class) -> author persisted: false, book persisted: false
|
|
5. dsl.transaction inside @Transactional, inner fails, caught -> caught inner failure, outer continues (author id 8)
|
|
outer author persisted: true, inner author persisted: false
|
|
6. dsl.transaction alone: success persisted: true; failure persisted: false
|