diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java index ac6d814599..0b0e7c620f 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java @@ -128,12 +128,7 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator configurationValues, - String explicitDatabaseName, - Integer explicitDatabaseMajorVersion, - Integer explicitDatabaseMinorVersion, - String explicitDatabaseVersion) { - return ( isNotEmpty(explicitDatabaseVersion) || explicitDatabaseMajorVersion != null || explicitDatabaseMinorVersion != null ) - && ( isNotEmpty(explicitDatabaseName) || isNotNullAndNotEmpty( configurationValues.get(DIALECT) ) ); + private static boolean explicitDialectConfiguration(String explicitDatabaseName, + Map configurationValues) { + return isNotEmpty( explicitDatabaseName ) || isNotNullAndNotEmpty( configurationValues.get( DIALECT ) ); } private static boolean isNotNullAndNotEmpty(Object o) { @@ -502,7 +492,7 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator