We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffea8c commit 2a4de06Copy full SHA for 2a4de06
src/main/java/javax/persistence/EntityManagerFactory.java
@@ -32,7 +32,7 @@
32
*
33
* @since Java Persistence 1.0
34
*/
35
-public interface EntityManagerFactory {
+public interface EntityManagerFactory extends AutoCloseable {
36
37
/**
38
* Create a new application-managed <code>EntityManager</code>.
@@ -130,6 +130,7 @@ public interface EntityManagerFactory {
130
* @throws IllegalStateException if the entity manager factory
131
* has been closed
132
133
+ @Override
134
public void close();
135
136
0 commit comments