java.lang.IllegalStateException异常问题
String sql="from ProductOrdersInfo p where p.id in (select min(id) from ProductOrdersInfo po where po.memberInfo.id=? and po.state=? group by po.code) ";
这条sql语句有什么问题吗
运行时报:
警告: Unhandled Exception thrown: class java.lang.IllegalStateException
2008-6-29 15:23:49 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.AggregateNode
\-[AGGREGATE] AggregateNode: 'min'
\-[IDENT] IdentNode: 'id' {originalText=id}