mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Yeah, nah. This is the real fix. Expose: SpiTransaction TransctionManager.getInScope(); ... and have ebean-spring-txn SpringJdbcTransactionManager call it instead of getActive().
This commit is contained in:
+2
-2
@@ -28,12 +28,12 @@ public class DefaultTransactionScopeManager extends TransactionScopeManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpiTransaction getMaybeInactive() {
|
||||
public SpiTransaction getInScope() {
|
||||
return DefaultTransactionThreadLocal.get(serverName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpiTransaction get() {
|
||||
public SpiTransaction getActive() {
|
||||
SpiTransaction t = DefaultTransactionThreadLocal.get(serverName);
|
||||
if (t == null || !t.isActive()) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user