1. 程式人生 > >查詢操作 could not resolve property: name of:

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

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無法解析