15
15
import org .hibernate .sql .ast .spi .ParameterMarkerStrategy ;
16
16
17
17
/**
18
- * Settings related to JDBC, Connections, pools, Dialects, etc
18
+ * Settings related to JDBC, Connections, pools, Dialects, and so on.
19
19
*
20
20
* @author Steve Ebersole
21
21
*/
@@ -162,7 +162,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
162
162
/**
163
163
* Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
164
164
* determining the {@link org.hibernate.dialect.Dialect} to use when the name does
165
- * not provide enough detail .
165
+ * not provide enough information .
166
166
* <p>
167
167
* The value is expected to match what would be returned from
168
168
* {@link java.sql.DatabaseMetaData#getDatabaseProductVersion()}) for the
@@ -175,7 +175,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
175
175
/**
176
176
* Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
177
177
* determining the {@link org.hibernate.dialect.Dialect} to use when the name does
178
- * not provide enough detail .
178
+ * not provide enough information .
179
179
* <p>
180
180
* The value is expected to match what would be returned from
181
181
* {@link java.sql.DatabaseMetaData#getDatabaseMajorVersion()}) for the underlying
@@ -188,7 +188,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
188
188
/**
189
189
* Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
190
190
* determining the {@link org.hibernate.dialect.Dialect} to use when the name does
191
- * not provide enough detail .
191
+ * not provide enough information .
192
192
* <p>
193
193
* The value is expected to match what would be returned from
194
194
* {@link java.sql.DatabaseMetaData#getDatabaseMinorVersion()}) for the underlying
@@ -258,7 +258,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
258
258
* The default implementation is not recommended for use in production.
259
259
*
260
260
* @apiNote The term {@code "class"} appears in the setting name due to legacy reasons;
261
- * however it can accept instances.
261
+ * however, it can accept instances.
262
262
*/
263
263
String CONNECTION_PROVIDER = "hibernate.connection.provider_class" ;
264
264
@@ -303,14 +303,15 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
303
303
304
304
/**
305
305
* Indicates that connections obtained from the configured {@link ConnectionProvider} have
306
- * auto-commit already disabled when they are acquired.
306
+ * {@linkplain java.sql.Connection#getAutoCommit auto-commit} already disabled when they
307
+ * are acquired.
307
308
* <p>
308
309
* It is inappropriate to set this value to {@code true} when the connections returned by
309
310
* the provider do not, in fact, have auto-commit disabled. Doing so may lead to Hibernate
310
311
* executing SQL operations outside the scope of any transaction.
311
312
*
312
313
* @apiNote By default, Hibernate calls {@link java.sql.Connection#setAutoCommit(boolean)}
313
- * on newly- obtained connections. With this setting enabled, that call is skipped, along
314
+ * on newly obtained connections. With this setting enabled, that call is skipped, along
314
315
* with some other operations, in the interest of performance.
315
316
*
316
317
* @settingDefault {@code false}
@@ -332,6 +333,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
332
333
* and {@link org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProvider}.
333
334
*/
334
335
@ Deprecated (since ="7" )
336
+ @ SuppressWarnings ("DeprecatedIsStillUsed" )
335
337
String CONNECTION_PREFIX = "hibernate.connection" ;
336
338
337
339
/**
@@ -340,7 +342,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
340
342
* either:
341
343
* <ul>
342
344
* <li>an instance of {@code StatementInspector},
343
- * <li>a {@link Class} representing an class that implements {@code StatementInspector}, or
345
+ * <li>a {@link Class} representing a class that implements {@code StatementInspector}, or
344
346
* <li>the name of a class that implements {@code StatementInspector}.
345
347
* </ul>
346
348
*
@@ -423,6 +425,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
423
425
* @deprecated It's not necessary to set this explicitly
424
426
*/
425
427
@ Deprecated (since = "7" , forRemoval = true )
428
+ @ SuppressWarnings ("DeprecatedIsStillUsed" )
426
429
String USE_SCROLLABLE_RESULTSET = "hibernate.jdbc.use_scrollable_resultset" ;
427
430
428
431
/**
@@ -539,12 +542,12 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
539
542
* Whether access to JDBC {@linkplain java.sql.DatabaseMetaData metadata} is allowed during bootstrap.
540
543
* <p/>
541
544
* Typically, Hibernate accesses this metadata to understand the capabilities of the underlying
542
- * database to help minimize needed configuration. Disabling this access means that only explicit
543
- * settings are used. At a minimum, the Dialect to use must be specified using either the {@value #DIALECT}
544
- * or {@value JdbcSettings#JAKARTA_HBM2DDL_DB_NAME} setting. When the Dialect to use is specified in
545
+ * database to help minimize needed configuration. Disabling this access means that only explicit
546
+ * settings are used. At a minimum, the Dialect to use must be specified using either the {@value #DIALECT}
547
+ * or {@value JdbcSettings#JAKARTA_HBM2DDL_DB_NAME} setting. When the Dialect to use is specified in
545
548
* this manner it is generally a good idea to specify the
546
- * {@linkplain JdbcSettings#JAKARTA_HBM2DDL_DB_VERSION database version} as well - Dialects use the version
547
- * to configure themselves.
549
+ * {@linkplain JdbcSettings#JAKARTA_HBM2DDL_DB_VERSION database version} as well - Dialects use the
550
+ * version to configure themselves.
548
551
*
549
552
* @apiNote The specified Dialect may also provide defaults into the "explicit" settings.
550
553
*
0 commit comments