67,513
社区成员
发帖
与我相关
我的任务
分享
String hql = "select new com.lzyim.lm.virtualvo.Viorder(tor.id,tor.deliverytime,tor.replacetype,torde.good.id,torde.goodname,torde.price,torde.amount,tor.sendaddress,tor.company,tor.clientname,tor.totalprice,tor.fee,tor.storestaffname,tor.cardid,tor.remark,tor.orderprinttime,tor.orderstatus,torde.id,tor.client.id,torde.goodtype,torde.goodbrand,torde.tradename,tor.ordertype)from TOrder tor left join tor.orderDetailList torde left join tor.store tors where tor.chargeoffstatus=0"
could not resolve property: orderDetailList of: com.lzyim.lm.vo.TOrder [select new com.lzyim.lm.virtualvo.Viorder(tor.id,tor.deliverytime,tor.replacetype,torde.good.id,torde.goodname,torde.price,torde.amount,tor.sendaddress,tor.company,tor.clientname,tor.totalprice,tor.fee,tor.storestaffname,tor.cardid,tor.remark,tor.orderprinttime,tor.orderstatus,torde.id,tor.client.id,torde.goodtype,torde.goodbrand,torde.tradename,tor.ordertype)from com.lzyim.lm.vo.TOrder tor left join tor.orderDetailList torde left join tor.store tors where tor.chargeoffstatus=0 and tors.id = ?and tor.ordertype=?and tor.orderstatus=? and tor.createtime>? and tor.createtime< ?]; nested exception is org.hibernate.QueryException: could not resolve property: orderDetailList of: com.lzyim.lm.vo.TOrder [select new com.lzyim.lm.virtualvo.Viorder(tor.id,tor.deliverytime,tor.replacetype,torde.good.id,torde.goodname,torde.price,torde.amount,tor.sendaddress,tor.company,tor.clientname,tor.totalprice,tor.fee,tor.storestaffname,tor.cardid,tor.remark,tor.orderprinttime,tor.orderstatus,torde.id,tor.client.id,torde.goodtype,torde.goodbrand,torde.tradename,tor.ordertype)from com.lzyim.lm.vo.TOrder tor left join tor.orderDetailList torde left join tor.store tors where tor.chargeoffstatus=0 and tors.id = ?and tor.ordertype=?and tor.orderstatus=? and tor.createtime>? and tor.createtime< ?]