首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

在hibernate中查询记要数量的方法count

2012-10-18 
在hibernate中查询记录数量的方法count((Integer)s.createFilter(Cls.class, select count(*)).list().g

在hibernate中查询记录数量的方法count
((Integer)s.createFilter(Cls.class, "select count(*)").list().get(0)).intValue();

热点排行