功能:查询TempFacilityMitigationInfoVO中不存在于EntInfoVO中的客户代码,id为主键类
HQL语句如下:
select f.id.customerid from TempFacilityMitigationInfoVO f where not exists (select 1 from EntInfoVO e where e.customerid=f.id.customerid)错误信息:
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: customerid

解决方案 »

  1.   

    customerid这个首先你的查你的entity是否正确,让后再查你对应的配置文件是否正确,如果这些跟表都
    对应上了,就应该没有问题了
      

  2.   

    你这条SQL单独在数据库中执行会成功吗?  
      

  3.   

    我菜了。以前用struts、hibernate的时候用过HQL,都忘完了,查看下你配置文件,相应的bean是否配置正确