Replies: 3 comments 3 replies
-
|
잘 읽었습니다. 저는 MemberService처럼 서비스를 가져온다는 것 자체에 저는 이점이 있다고 생각합니다. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
저는 개인적으로 2번은 별로인 것 같고, 1번과 3번이 남는데 이중 1번의 방식을 선호합니다 !
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
사실 1번의 방식의 가장 큰 문제점은 순환 구조인데요! 이 문제점은 오히려 장점이 될 수도 있다 생각합니다! 순환 구조가 발생한 것은 그만큼 설계 혹은 로직 구현을 올바르게 하지 못했다는 것이기 때문에, 다시 생각해보게 되는 이점이 있다고 생각합니다! 저도 1번이 좋습니다! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
예를 들어 MemberRepository에서 memberId를 통해 Member 엔티티를 조회하는 상황을 가정했을 때, 해당 회원이 존재하지 않는 경우 validate를 어디서 하면 좋을지에 대해 논의하지 않은 것 같아서 올립니다.
기존에는 아래 2가지 방법 중 하나를 사용했었습니다.
다른 레퍼런스를 찾아보다가 3. Repository Interface에 default method를 사용하는 방식이 좋아보여 논의해보고 싶습니다!
1, 2, 3번 중 어떤 방식으로 진행하면 좋을지 각자 의견 부탁드려요! 🤗
Beta Was this translation helpful? Give feedback.
All reactions