hibernate 用原始sql语句分页报错 SQLQuery query = session.createSQLQuery(sql.toString()); query.setFirstResult((offset - 1) * length); query.setMaxResults(length); list = query.list();