0
即使它存在,但我得到異常無法找到命名參數。HQL:即使存在命名參數,即使它存在
org.hibernate.QueryParameterException: could not locate named parameter [type]
查詢
String query = ("insert into my_table (abc_id, dup_id,type_code) "+
" (abc_seq.nextval, 2,:type");
Query myQuery = em.createNativeQuery(query);
nativeQuery.setParameter("type", code);
我只是不明白是什麼的問題。
不是一個真正的重複@Andremoniy只是一個錯字問題 – DamCx