梁山伯好汉排座次概括:hibernate 问题

来源:百度文库 编辑:高校问答 时间:2024/05/01 15:06:16
select sum(type=1),time
from incarmessage group by time order by time asc

以上这个语句如何用HQL(hibernate)来表达。谢谢。

恐怕只能加一个流水号作主键了。hibenate应该是需要一个主键字段定位的。