diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/StatementPreparerImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/StatementPreparerImpl.java index 6ec8445d9b..d7250a2c21 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/StatementPreparerImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/StatementPreparerImpl.java @@ -28,6 +28,7 @@ import org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor; * @author Lukasz Antoniak * @author Brett Meyer */ +@SuppressWarnings("resource") class StatementPreparerImpl implements StatementPreparer { private final JdbcCoordinatorImpl jdbcCoordinator; private final JdbcServices jdbcServices; diff --git a/hibernate-core/src/main/java/org/hibernate/resource/jdbc/spi/package-info.java b/hibernate-core/src/main/java/org/hibernate/resource/jdbc/spi/package-info.java index bef02f6c71..96c822b78d 100644 --- a/hibernate-core/src/main/java/org/hibernate/resource/jdbc/spi/package-info.java +++ b/hibernate-core/src/main/java/org/hibernate/resource/jdbc/spi/package-info.java @@ -6,7 +6,10 @@ */ /** - * An SPI for managing JDBC connections and other heavyweight resources, - * based around the idea of a "JDBC session". + * An SPI for managing JDBC connections and other heavyweight resources, based around the + * idea of a {@linkplain org.hibernate.resource.jdbc.spi.JdbcSessionOwner "JDBC session"}. + *

+ * The interface {@link org.hibernate.resource.jdbc.spi.StatementInspector} is especially + * useful for monitoring/intercepting SQL statements as they are sent to the database. */ package org.hibernate.resource.jdbc.spi;