HHH-18454 - Skip connection provider retrieval and DB info logging when booting offline
This commit is contained in:
parent
9e11c2e2c3
commit
badf4f278f
|
@ -19,6 +19,7 @@ import org.hibernate.internal.util.config.ConfigurationHelper;
|
||||||
import static org.hibernate.dialect.SimpleDatabaseVersion.ZERO_VERSION;
|
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.interpretIsolation;
|
||||||
import static org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.toIsolationNiceName;
|
import static org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator.toIsolationNiceName;
|
||||||
|
import static org.hibernate.internal.util.StringHelper.nullIfEmpty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard implementation of DatabaseConnectionInfo
|
* Standard implementation of DatabaseConnectionInfo
|
||||||
|
@ -44,11 +45,11 @@ public class DatabaseConnectionInfoImpl implements DatabaseConnectionInfo {
|
||||||
String isolationLevel,
|
String isolationLevel,
|
||||||
Integer poolMinSize,
|
Integer poolMinSize,
|
||||||
Integer poolMaxSize) {
|
Integer poolMaxSize) {
|
||||||
this.jdbcUrl = jdbcUrl;
|
this.jdbcUrl = nullIfEmpty( jdbcUrl );
|
||||||
this.jdbcDriver = jdbcDriver;
|
this.jdbcDriver = nullIfEmpty( jdbcDriver );
|
||||||
this.dialectVersion = dialectVersion;
|
this.dialectVersion = dialectVersion;
|
||||||
this.autoCommitMode = autoCommitMode;
|
this.autoCommitMode = nullIfEmpty( autoCommitMode );
|
||||||
this.isolationLevel = isolationLevel;
|
this.isolationLevel = nullIfEmpty( isolationLevel );
|
||||||
this.poolMinSize = poolMinSize;
|
this.poolMinSize = poolMinSize;
|
||||||
this.poolMaxSize = poolMaxSize;
|
this.poolMaxSize = poolMaxSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue