HHH-8898 Apply the auto-closeable also to StatelessSession and HibernateIterator

This commit is contained in:
Sanne Grinovero 2015-05-12 14:08:08 +01:00
parent d7bf58e318
commit f3247cf3dd
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ import java.sql.Connection;
*
* @author Gavin King
*/
public interface StatelessSession extends SharedSessionContract {
public interface StatelessSession extends SharedSessionContract, java.io.Closeable {
/**
* Close the stateless session and release the JDBC connection.
*/

View File

@ -35,7 +35,7 @@ import org.hibernate.JDBCException;
*
* @author Gavin King
*/
public interface HibernateIterator extends Iterator {
public interface HibernateIterator extends Iterator, java.io.Closeable {
/**
* Close the Hibernate query result iterator
*