-
Notifications
You must be signed in to change notification settings - Fork 29
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
전체 키워드 조회 시 학습 진도를 포함한다 #1510
전체 키워드 조회 시 학습 진도를 포함한다 #1510
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
후.. 도메인이 복잡하니 코드도 복잡해질 수 밖에 없는 것 같네요
그래도 이해하기 쉬웠습니다
고생하셨습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
간단한 코멘트 남겼습니다!
Quiz quiz = new Quiz(1L, keyword, "자바 언어의 특징은?"); | ||
Member member = new Member(11L, "username", "nickname", Role.CREW, 101L, "https://"); | ||
EssayAnswer essayAnswer = new EssayAnswer(quiz, "객체 지향 언어", member); | ||
final EssayAnswer essayAnswer = createEssayAnswer(createQuizWithPK(1L)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
팀 프로젝트에서는 Fixture 를 만드는 Class 를 분리했었는데 이 방법을 도입하기엔 너무 많은 강을 건너온 것 같네요... 연어는 도메인 객체 생성 중복 로직을 보통 어떻게 처리하시나요??
@Query("SELECT e FROM EssayAnswer e " + | ||
"LEFT JOIN FETCH e.quiz q " + | ||
"WHERE e.member.id = :memberId") | ||
Set<EssayAnswer> findAllByMemberId(@Param("memberId") Long memberId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@param 을 쓰지 않아도 변수명을 기반으로 :memberId 를 추론해주는 것으로 아닌데 명시적으로 표기하는 것을 선호하시나요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컴파일러에게 -parameters
옵션을 전달해주어야 내부적으로 바인딩을 합니다.
그래서 저는 컴파일 옵션의 컨디션과 상관 없이 동작하는 것을 선호합니다!
a685867
to
1fdf9df
Compare
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~!
#️⃣연관된 이슈
📝작업 내용
💬리뷰 요구사항(선택)