No Property "Method" found for type "Entity"

Yeoonnii·2022년 10월 27일
0

JPA

목록 보기
4/9

오류메세지

Could not create query for public abstract int com.example.repository.ItemRepository.insertAllItem(java.util.List);
Reason: Failed to create query for method public abstract int com.example.repository.ItemRepository.insertAllItem(java.util.List)!
No property 'insertAllItem' found for type 'Item'; nested exception is java.lang.IllegalArgumentException:
Failed to create query for method public abstract int com.example.repository.ItemRepository.insertAllItem(java.util.List)! No property 'insertAllItem' found for type 'Item'

해결

메소드명이 Entity에 존재하지 않기 때문에 사용할 수 없다는 오류이다
Repository에 생성한 메소드를 지우니 오류가 해결되었다

0개의 댓글