mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 06:39:59 +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:
1 parent
73b2cc55f3
commit
175714046a
6 files changed
+29
-23
No files matched your search
+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