HHH-8898 Change the SessionFactory API to enable auto-closeable when running on Java7

This commit is contained in:
Sanne Grinovero 2015-05-09 13:21:46 +01:00
parent 7c006f7fcd
commit 4d70a29e58
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ import org.hibernate.stat.Statistics;
* @author Gavin King
* @author Steve Ebersole
*/
public interface SessionFactory extends Referenceable, Serializable {
public interface SessionFactory extends Referenceable, Serializable, java.io.Closeable {
/**
* Get the special options used to build the factory.