java - Hibernate : ORA-00907: missing right parenthesis -
i error : ora-00907: missing right parenthesis
with hql :
select new map(r,count(pt)) role r inner join r.portfolioteams pt inner join pt.teamstatustransitions ptst inner join ptst.teamstatus tst pt.id.bankid = :bankid , pt.id.networkdistributorid = :networkdistributorid , ptst.id.startdate <= :startdate , (ptst.enddate null or ptst.enddate > :enddate) , tst.id.teamstatusid in (:statusid) , (r.id.cpmroleid in (:roles) or r.id.cpmroleid in (:roles1) )
i checked, there no missing parenthesis, i'm pretty sure comes count(pt).
any idea ?
thanks
maybe not variables (:bankid, :networkdistributorid, :startdate, :enddate, :statusid, :roles, :roles1) bound when executing query?
Comments
Post a Comment