首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

hql 总出错 帮小弟我看看

2012-03-02 
hql 总出错 帮我看看select sum(loan.l_money) from loan,mainInfo where loan.l_ID_numbermainInfo.m_ID

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 文件配置有没有问题?
贴来看看

热点排行