如何将SQL查询转换为HQL?

时间:2013-11-21 08:47:46

标签: java sql hql

如何将以下SQL查询转换为HQL查询?

select c.*, count(o.*)

from Cooperativa as c
     left join Operatore as o on c.id = o.id_cooperativa

where c.flag_cancellazione = 0

group by c.id 

order by c.id desc

感谢。