现在有个sql  想改为 HQL 的查询方式select * from TB_Person a, (select id_type,id_number,count(id) from TB_Person c where c.id_type is not null and c.id_number is not null group by id_type, id_number having count(id)>1))  b where a.id_type = b.id_type and a.id_number = b.id_number order by a.id_type,b.id_number高分,急用!还是要用 from  那种