From 158f778e0a2c0a6e4153339c57ce3626ec179956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96stlund?= Date: Fri, 31 Aug 2018 22:43:21 +0200 Subject: [PATCH] Resolves #77 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erik Östlund --- src/main/java/javax/persistence/EntityManagerFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/javax/persistence/EntityManagerFactory.java b/src/main/java/javax/persistence/EntityManagerFactory.java index 7a55e18f..8bf8f612 100644 --- a/src/main/java/javax/persistence/EntityManagerFactory.java +++ b/src/main/java/javax/persistence/EntityManagerFactory.java @@ -32,7 +32,7 @@ * * @since Java Persistence 1.0 */ -public interface EntityManagerFactory { +public interface EntityManagerFactory extends AutoCloseable { /** * Create a new application-managed EntityManager. @@ -130,6 +130,7 @@ public interface EntityManagerFactory { * @throws IllegalStateException if the entity manager factory * has been closed */ + @Override public void close(); /**