Hey Jordan,

maybe what you are looking for is Blaze-Persistence Entity Views? 
https://github.com/Blazebit/blaze-persistence#entity-view-usage
Query caching should work since it builds on top of scalar queries, but 
lazy loading is something I don't support and honestly don't think will 
support.

Regards,
Christian

Am 02.12.2016 um 18:40 schrieb Jordan Gigov:
> 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.
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to