客房部工作总结:hibernate 问题

来源:百度文库 编辑:中科新闻网 时间:2024/05/12 01:57:08
select sum(type=1),time
from incarmessage group by time order by time asc

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

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