From 4d70a29e58630ce6d4296016e949401d0cc73d06 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Sat, 9 May 2015 13:21:46 +0100 Subject: [PATCH] HHH-8898 Change the SessionFactory API to enable auto-closeable when running on Java7 --- hibernate-core/src/main/java/org/hibernate/SessionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/SessionFactory.java b/hibernate-core/src/main/java/org/hibernate/SessionFactory.java index d1c46933e7..c44aac4b09 100644 --- a/hibernate-core/src/main/java/org/hibernate/SessionFactory.java +++ b/hibernate-core/src/main/java/org/hibernate/SessionFactory.java @@ -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.