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
谢谢
你可以在下面搜索框中键入要查询的问题!
如何将以下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
谢谢
# 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