데이터가 10개 존재할 때, http://localhost:8080/api/posts/users/1/participation-records?size=1 같이 size를 10 이하(존재하는 데이터의 개수)로 설정한다면 아래의 에러가 발생합니다. district를 가져오는 부분에서 join fetch 문제가 발생하는 것 같습니다. querydsl을 사용하는 경우에도 동일한 에러가 발생하는 경우가 있는 것 같아서 join fetch 문제가 맞는 것 같습니다. size와의 관계는 아직 잘 모르겠습니다.
org.hibernate.query.SemanticException: query specified join fetching, but the owner of the fetched association was not present in the select list [SqmSingularJoin(com.bungaebowling.server.post.Post(587847740588100).district(587847741367300) : district)
Description
데이터가 10개 존재할 때, http://localhost:8080/api/posts/users/1/participation-records?size=1 같이 size를 10 이하(존재하는 데이터의 개수)로 설정한다면 아래의 에러가 발생합니다. district를 가져오는 부분에서 join fetch 문제가 발생하는 것 같습니다. querydsl을 사용하는 경우에도 동일한 에러가 발생하는 경우가 있는 것 같아서 join fetch 문제가 맞는 것 같습니다. size와의 관계는 아직 잘 모르겠습니다.
Tasks