을 설정하지 I가 다음과 같은 예외 오류 :org.hibernate.QueryException : 모든 매개 변수가
Caused by: org.hibernate.QueryException: Not all named parameters have been set: [c]
[UPDATE EtudeCredit e SET e.avisfin=:c WHERE e.codeEc=:idEc]
내 코드입니다 :
public EtudeCredit updateavisfin(Integer id, String avisfint) {
Query d= entityManager.createQuery("UPDATE EtudeCredit e SET e.avisfin=:c WHERE e.codeEc=:idEc");
d.setParameter("idEc",id).executeUpdate();
d.setParameter("c",avisfint).executeUpdate();
return (EtudeCredit) d.getSingleResult();}
어떤 도움? 뭐가 잘못 되었 니?
내가 지금 말한 것처럼 executeupdate를 변경했습니다. DML OPERATION에 대해 지원되지 않습니다. –