File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
spring-orm/src/main/java/org/springframework/orm/hibernate5 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -225,6 +225,8 @@ else if (jtaTransactionManager instanceof TransactionManager) {
225
225
"Unknown transaction manager type: " + jtaTransactionManager .getClass ().getName ());
226
226
}
227
227
228
+ getProperties ().put (AvailableSettings .TRANSACTION_COORDINATOR_STRATEGY , "jta" );
229
+
228
230
// Hibernate 5.1/5.2: manually enforce connection release mode AFTER_STATEMENT (the JTA default)
229
231
try {
230
232
// Try Hibernate 5.2
You can’t perform that action at this time.
0 commit comments