[hibernate-dev] AutoCloseable is great.. what about JPA?

Sanne Grinovero sanne at hibernate.org
Fri Dec 2 11:26:38 EST 2016


We updated several Hibernate APIs to allow using the
try-with-resources pattern a while back,
and I've been finding that quite handy.

Had to write some code using JPA's EntityManager these days; in
contrast it feels it's stuck somewhere between the stone age and the
dark ages to not be able to do the same.

Should we propose the same API fixes to the JPA expert group?

Thanks,
Sanne


More information about the hibernate-dev mailing list