mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Only throwing warning for autocommit when server is not set to use autocommit-friendly TransactionManager. (#1085)
This commit is contained in:
@@ -349,7 +349,7 @@ public class DefaultContainer implements SpiContainer {
|
||||
Connection c = null;
|
||||
try {
|
||||
c = serverConfig.getDataSource().getConnection();
|
||||
if (c.getAutoCommit()) {
|
||||
if (!serverConfig.isAutoCommitMode() && c.getAutoCommit()) {
|
||||
logger.warn("DataSource [{}] has autoCommit defaulting to true!", serverConfig.getName());
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user