mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
The reason for this is that ScopedTransaction holds a stack of ScopeTrans and Transaction, but the actual transaction in this stack is often the same instance / shared when nesting. The issue is that currently setNestedUseSavepoint() sets this flag on the *_underlying transaction_* and this instance is the same / shared when 'nesting'. This change moves the nestedUseSavepoint flag for ScopedTransaction to be on ScopeTrans (from the underlying transaction).