@@ -192,15 +192,17 @@ private DatabaseConnectionInfo buildInfo(Map<String, Object> configurationValues
192
192
return new DatabaseConnectionInfoImpl ( configurationValues , environment .getDialect () );
193
193
}
194
194
195
- private static JdbcEnvironmentImpl getJdbcEnvironmentWithDefaults (
195
+ // Used by Hibernate Reactive
196
+ protected JdbcEnvironmentImpl getJdbcEnvironmentWithDefaults (
196
197
Map <String , Object > configurationValues ,
197
198
ServiceRegistryImplementor registry ,
198
199
DialectFactory dialectFactory ) {
199
200
final Dialect dialect = dialectFactory .buildDialect ( configurationValues , null );
200
201
return new JdbcEnvironmentImpl ( registry , dialect );
201
202
}
202
203
203
- private static JdbcEnvironmentImpl getJdbcEnvironmentWithExplicitConfiguration (
204
+ // Used by Hibernate Reactive
205
+ protected JdbcEnvironmentImpl getJdbcEnvironmentWithExplicitConfiguration (
204
206
Map <String , Object > configurationValues ,
205
207
ServiceRegistryImplementor registry ,
206
208
DialectFactory dialectFactory ,
@@ -221,6 +223,15 @@ private static JdbcEnvironmentImpl getJdbcEnvironmentWithExplicitConfiguration(
221
223
null ,
222
224
configurationValues
223
225
);
226
+ return getJdbcEnvironmentWithExplicitConfiguration ( configurationValues , registry , dialectFactory , dialectResolutionInfo );
227
+ }
228
+
229
+ // Used by Hibernate Reactive
230
+ protected JdbcEnvironmentImpl getJdbcEnvironmentWithExplicitConfiguration (
231
+ Map <String , Object > configurationValues ,
232
+ ServiceRegistryImplementor registry ,
233
+ DialectFactory dialectFactory ,
234
+ DialectResolutionInfo dialectResolutionInfo ) {
224
235
final Dialect dialect = dialectFactory .buildDialect ( configurationValues , () -> dialectResolutionInfo );
225
236
return new JdbcEnvironmentImpl ( registry , dialect );
226
237
}
0 commit comments