如何将SQL查询转换为休眠标准?

时间:2015-05-14 06:37:32

标签: mysql hibernate criteria

SELECT th.`id`,th.`type`,th.`url_label`,url.`url`,COUNT(th.`id`) FROM 
`threat` th LEFT JOIN `threat_url` url ON th.`id`= url.`threat_id` 
WHERE th.enterprise_id=1816 AND th.`status` != 'deleted'  GROUP BY 
th.`id` ORDER BY COUNT(th.`id`) DESC ;

0 个答案:

没有答案