查询操作 could not resolve property: name of:

来源:互联网 发布:c c 高性能网络库 编辑:程序博客网 时间:2024/05/22 12:19

 

org.hibernate.QueryException: could not resolve property: name of: com.huateng.ebank.entity.data.customer.CustomerInfo [select ci, dd.dataName from com.huateng.ebank.entity.data.customer.CustomerInfo as ci, resource.bean.pub.DataDic as dd where trim(ci.idtype) = trim(dd.dataNo) and dd.dataTypeNo = 29 and ci.custType = '3' and ci.name like ? order by ci.id]

 

模糊查询时加有条件ci.name,代码移植自db2的系统,现在用oracle,oracle中该字段为cname,而非name,因此造成ci.name无法解析