-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntityManager(Factory) should implement AutoCloseable #77
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@KrishnaST Commented |
|
Signed-off-by: Erik Östlund <erik.ostlund@gmail.com>
I've been working a lot with EntityManager in school now, and it kinda bugs me that this isn't implemented. |
It would be great if we could use the try-with-resource statement with the EntityManager Factory Interface. It's the only thing that makes sense. |
+1 |
2 similar comments
+1 |
+1 |
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
EntityManager and EntityManagerFactory have #close() methods but do not implement AutoCloseable. Implementing AutoCloseable would allow them to be used in Java 7 try-with-resource statement.
The text was updated successfully, but these errors were encountered: