日期:2014-05-20  浏览次数:20804 次

hql 总出错 帮我看看
select sum(loan.l_money) from loan,mainInfo where loan.l_ID_number=mainInfo.m_ID_number and mainInfo.m_addr like '1155______' group by loan.l_ID_number
这个东西老错
java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.AggregateNode 
 \-[AGGREGATE] AggregateNode: 'sum'


------解决方案--------------------
loan.hbm.xml 文件配置有没有问题?
贴来看看