HHH-18454 - Skip connection provider retrieval and DB info logging when booting offline

This commit is contained in:
Steve Ebersole 2024-08-06 08:12:39 -05:00
parent 9e11c2e2c3
commit badf4f278f
1 changed files with 5 additions and 4 deletions

View File

@ -19,6 +19,7 @@ import org.hibernate.internal.util.config.ConfigurationHelper;
import static org.hibernate.dialect.SimpleDatabaseVersion.ZERO_VERSION;
import static org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.interpretIsolation;
import static org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.toIsolationNiceName;
import static org.hibernate.internal.util.StringHelper.nullIfEmpty;
/**
* Standard implementation of DatabaseConnectionInfo
@ -44,11 +45,11 @@ public class DatabaseConnectionInfoImpl implements DatabaseConnectionInfo {
String isolationLevel,
Integer poolMinSize,
Integer poolMaxSize) {
this.jdbcUrl = jdbcUrl;
this.jdbcDriver = jdbcDriver;
this.jdbcUrl = nullIfEmpty( jdbcUrl );
this.jdbcDriver = nullIfEmpty( jdbcDriver );
this.dialectVersion = dialectVersion;
this.autoCommitMode = autoCommitMode;
this.isolationLevel = isolationLevel;
this.autoCommitMode = nullIfEmpty( autoCommitMode );
this.isolationLevel = nullIfEmpty( isolationLevel );
this.poolMinSize = poolMinSize;
this.poolMaxSize = poolMaxSize;
}