我想爲兩個持久化類組合查詢。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