JPQL1 [JPA/JPQL] Update/delete queries cannot be typed 해결 org.springframework.dao.InvalidDataAccessApiUsageException: Update/delete queries cannot be typed; nested exception is java.lang.IllegalArgumentException: Update/delete queries cannot be typed em.createQuery("delete from Goal as g where g.id = :goalId and g.member.id = :memberId",Goal.class) .setParameter("goalId",goalId).setParameter("memberId",memberId).getResultList(); 초기에 작성한 코드는 이것이었다. dele.. 2022. 8. 5. 이전 1 다음