HHH-8898 Apply the auto-closeable also to StatelessSession and HibernateIterator
This commit is contained in:
parent
d7bf58e318
commit
f3247cf3dd
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue