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:
, 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?