mc阿哲生日:hibernate 问题

来源:百度文库 编辑:高考问答 时间:2024/04/29 18:55:53
select sum(type=1),time
from incarmessage group by time order by time asc

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

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