autoExposedTransaction

Whether to always run some steps that possibly require Exposed transactions in Exposed transactions.

As some Exposed APIs implicitly require a transaction and the requirements sometimes change between versions, we provide this option to best suit different scenarios.

Also see the parameters with WithExposedTransaction in their names, which default to this value.

Enabling this option slightly degrades performance but reduces the likelihood of running into java.lang.IllegalStateException: No transaction in context..

Note: When using JdbcTransactionExposedTransactionProvider, it's recommended to set this to true since the transaction overhead is minimal.