查詢操作 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無法解析

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章