String queryHql="select a from Products as a where a.id.proId in "
+" (select b.id.proid from Protypedetails as b where b.id.subId="+subid+") "
+" order by a.thedate"; 总是报org.hibernate.QueryException异常:
could not resolve property: id.proid of: com.jurr.voo.Protypedetails [select a from com.jurr.voo.Products as a where a.id.proId in (select b.id.proid from com.jurr.voo.Protypedetails as b where b.id.subId=1) order by a.thedate]请教是语句语法的问题还是哪里的问题?
我的 a.id.proId 、b.id.proid 、b.id.subId 、a.thedate都是存在的,不知道异常里说的 property: id.proid 指的是什么请指点~
+" (select b.id.proid from Protypedetails as b where b.id.subId="+subid+") "
+" order by a.thedate"; 总是报org.hibernate.QueryException异常:
could not resolve property: id.proid of: com.jurr.voo.Protypedetails [select a from com.jurr.voo.Products as a where a.id.proId in (select b.id.proid from com.jurr.voo.Protypedetails as b where b.id.subId=1) order by a.thedate]请教是语句语法的问题还是哪里的问题?
我的 a.id.proId 、b.id.proid 、b.id.subId 、a.thedate都是存在的,不知道异常里说的 property: id.proid 指的是什么请指点~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货