I would like to have a combined query for two constant classes.
In HQL, this can be achieved with a select clause.
select new Family(mother, mate, offspr)
from DomesticCat as mother
join mother.mate as mate
left join mother.kittens as offspr
In the above example, Family is a unified class with DemesticCat as its constructor parameters
What is equivalent to the criterion of the proposal of the choice of HQL?
source
share