I've wondered about will Java EE 7 include a JPA specification that updates
the EntityManager interface so that it extends Java 7's AutoCloseable. I've
posted a question regarding this (in a generalized way) at StackOverflow (
http://stackoverflow.com/q/8431755/433835). Please see that for fancy links.
I've checked out Java EE 7's JCP page to get some information on this, but
I didn't find a thing. Then I did the same with the early draft for JPA 2.1
and it doesn't mentions such a thing also. My first thought was that JPA
2.1 will try to be compatible with Java 6, so AutoCloseable is a big no
(correct me if I'm wrong).
Is JPA 2.1 a candidate to be included in Java EE 7? If yes, does it mean
that it has to / will focus on Java 7 features like automatic resource
management?
Other than this, how do *you* like the idea of AutoCloseable
EntityManagers, EntityTransaction, et cetera?