hibernate-orm
hibernate-orm copied to clipboard
HHH-18491 Do no try to resume non-existant transaction in doInSuspendedTransaction.
This PR avoid calling transactionManager.resume() in JtaIsolationDelegate.doInSuspendedTransaction when no surrounding transaction exists. It fixes an unpleasant warning in Atomikos' transaction manager.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion. For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-18491