2013-11-21 45 views
0

如何将以下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 

感谢。

回答