标签: 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
感谢。
答案 0 :(得分:1)
看看并做R& D. http://www.tutorialspoint.com/hibernate/hibernate_query_language.htm http://dev.wavemaker.com/wiki/bin/Dev/HqlTutorial
更多参考: http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/queryhql.html