mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 12:19:09 +00:00
@@ -39,7 +39,7 @@
|
||||
<dependency>
|
||||
<groupId>io.ebean</groupId>
|
||||
<artifactId>ebean</artifactId>
|
||||
<version>11.10.1</version>
|
||||
<version>11.10.3-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
@@ -70,8 +70,8 @@ public class SpringJdbcTransactionManager implements ExternalTransactionManager
|
||||
|
||||
if (holder == null || !holder.isSynchronizedWithTransaction()) {
|
||||
// no current Spring transaction
|
||||
SpiTransaction currentEbeanTransaction = transactionManager.get();
|
||||
if (currentEbeanTransaction != null) { // this is unexpected
|
||||
SpiTransaction currentEbeanTransaction = transactionManager.getInScope();
|
||||
if (currentEbeanTransaction != null && currentEbeanTransaction.isActive()) { // this is unexpected
|
||||
log.warn("No current Spring transaction BUT using current Ebean one {}", currentEbeanTransaction.getId());
|
||||
} else {
|
||||
log.trace("No current Spring transaction");
|
||||
|
||||
Reference in New Issue
Block a user