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

Jordan Gigov coladict at gmail.com
Fri Dec 2 12:40:34 EST 2016


One thing I think JPA is lacking is the ability to map read-only result classes,
without annotating them as @Entity and making the provider expect
table for them.
ConstructorResult is a pretty hacky way of getting there and loses some of the
benefits like lazy loading collections and in Hibernate's case query caching.


More information about the hibernate-dev mailing list