1515import org .hibernate .sql .ast .spi .ParameterMarkerStrategy ;
1616
1717/**
18- * Settings related to JDBC, Connections, pools, Dialects, etc
18+ * Settings related to JDBC, Connections, pools, Dialects, and so on.
1919 *
2020 * @author Steve Ebersole
2121 */
@@ -162,7 +162,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
162162 /**
163163 * Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
164164 * determining the {@link org.hibernate.dialect.Dialect} to use when the name does
165- * not provide enough detail .
165+ * not provide enough information .
166166 * <p>
167167 * The value is expected to match what would be returned from
168168 * {@link java.sql.DatabaseMetaData#getDatabaseProductVersion()}) for the
@@ -175,7 +175,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
175175 /**
176176 * Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
177177 * determining the {@link org.hibernate.dialect.Dialect} to use when the name does
178- * not provide enough detail .
178+ * not provide enough information .
179179 * <p>
180180 * The value is expected to match what would be returned from
181181 * {@link java.sql.DatabaseMetaData#getDatabaseMajorVersion()}) for the underlying
@@ -188,7 +188,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
188188 /**
189189 * Used in conjunction with {@value #JAKARTA_HBM2DDL_DB_NAME} for the purpose of
190190 * determining the {@link org.hibernate.dialect.Dialect} to use when the name does
191- * not provide enough detail .
191+ * not provide enough information .
192192 * <p>
193193 * The value is expected to match what would be returned from
194194 * {@link java.sql.DatabaseMetaData#getDatabaseMinorVersion()}) for the underlying
@@ -258,7 +258,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
258258 * The default implementation is not recommended for use in production.
259259 *
260260 * @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.
262262 */
263263 String CONNECTION_PROVIDER = "hibernate.connection.provider_class" ;
264264
@@ -303,14 +303,15 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
303303
304304 /**
305305 * 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.
307308 * <p>
308309 * It is inappropriate to set this value to {@code true} when the connections returned by
309310 * the provider do not, in fact, have auto-commit disabled. Doing so may lead to Hibernate
310311 * executing SQL operations outside the scope of any transaction.
311312 *
312313 * @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
314315 * with some other operations, in the interest of performance.
315316 *
316317 * @settingDefault {@code false}
@@ -332,6 +333,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
332333 * and {@link org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProvider}.
333334 */
334335 @ Deprecated (since ="7" )
336+ @ SuppressWarnings ("DeprecatedIsStillUsed" )
335337 String CONNECTION_PREFIX = "hibernate.connection" ;
336338
337339 /**
@@ -340,7 +342,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
340342 * either:
341343 * <ul>
342344 * <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
344346 * <li>the name of a class that implements {@code StatementInspector}.
345347 * </ul>
346348 *
@@ -423,6 +425,7 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
423425 * @deprecated It's not necessary to set this explicitly
424426 */
425427 @ Deprecated (since = "7" , forRemoval = true )
428+ @ SuppressWarnings ("DeprecatedIsStillUsed" )
426429 String USE_SCROLLABLE_RESULTSET = "hibernate.jdbc.use_scrollable_resultset" ;
427430
428431 /**
@@ -539,12 +542,12 @@ public interface JdbcSettings extends C3p0Settings, AgroalSettings, HikariCPSett
539542 * Whether access to JDBC {@linkplain java.sql.DatabaseMetaData metadata} is allowed during bootstrap.
540543 * <p/>
541544 * 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
545548 * 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.
548551 *
549552 * @apiNote The specified Dialect may also provide defaults into the "explicit" settings.
550553 *
0 commit comments