0
我想construt一個HQL查詢一樣HQL形成查詢
select PLAN_ID from "GPIL_DB"."ROUTE_PLAN" where ASSIGNED_TO
in ('prav','sheet') and END_DATE > todays date
我做的這樣,但得到一個錯誤,在設置參數
s=('a','b');
Query q = getSession().createQuery("select planId from RoutePlan where assignedTo in REG ");
if(selUsers != null) {
q.setParameter("REG", s);
}
我在哪裏做錯了嗎?請幫助執行基於hwl的查詢,其中包含條款