我想为两个持久化类组合查询。Hibernate Criteria API等价于HQL select子句?
在HQL这可以通过选择子句来实现,
select new Family(mother, mate, offspr)
from DomesticCat as mother
join mother.mate as mate
left join mother.kittens as offspr
在上述例子中,家庭是辅以化疗类DemesticCat作为其construtor PARAMS
什么是标准相当于HQL的选择条款?
非常感谢!这正是我期待的! 似乎标准几乎与HQL一样强大。 谢谢! – 2010-05-10 10:36:28