Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w6 프로젝트 아이디로 태스크 리스트 조회시 에러 발생 #47

Open
seoyoung-dev opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working fixed

Comments

@seoyoung-dev
Copy link
Contributor

문제

  • 프로젝트 아이디로 태스크 리스트 조회시 에러 발생

원인

List<TaskEntity> findAllByProjectIdAndIsDeletedFalse(Long projectId);
  • JPA는 TaskEntity의 필드명을 기반으로 쿼리를 생성하므로, project가 아닌 projectEntity를 참조해야 함

해결

List<TaskEntity> findAllByProjectEntityIdAndIsDeletedFalse(Long projectId);
  • TaskRespository의 findAllByProjectIdAndIsDeletedFalse 메서드를 findAllByProjectEntityIdAndIsDeletedFalse로 변경
@seoyoung-dev seoyoung-dev added bug Something isn't working fixed labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

1 participant