Skip to content

Commit

Permalink
HHH-8898 Apply the auto-closeable also to StatelessSession and Hibern…
Browse files Browse the repository at this point in the history
…ateIterator
  • Loading branch information
Sanne committed May 12, 2015
1 parent d7bf58e commit f3247cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@
*
* @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.
*/
Expand Down
Expand Up @@ -35,7 +35,7 @@
*
* @author Gavin King
*/
public interface HibernateIterator extends Iterator {
public interface HibernateIterator extends Iterator, java.io.Closeable {
/**
* Close the Hibernate query result iterator
*
Expand Down

0 comments on commit f3247cf

Please sign in to comment.