Home How to use SUBSELCT fetch strategy in hibernte?
Reply: 0

How to use SUBSELCT fetch strategy in hibernte?

user634 Published in March 23, 2018, 6:59 am

What is correct way to specify SUBSELCT fetch strategy in hibernate for single use case? I know I can achieve it by using:


, but it is global setting, for all queries. I would prefer to define it per-use-case. Second option is to use:

org.hibernate.Criteria.setFetchMode("", FetchMode.SELECT)

, but org.hibernate.Criteria api is depredated. It is recomended to use JPA CriteriaQuery, but SUBSELECT strategy is not supported by JPA. Is there any "valid" walkaround?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.249286 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO