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