使用addScalar()方法时无法解析Hibernate.Integer

时间:2014-03-14 08:02:06

标签: sql hibernate compiler-errors integer

String qry = select max(total) as max_marks from student;
SQLQuery sq = ses.createSQLQuery(qry);
sq.addScalar("max_marks",Hibernate.Integer);

编译错误:

Hibernate.Integer ---> Cannot be resolved

请说明我必须做哪些修改?

0 个答案:

没有答案