-
Notifications
You must be signed in to change notification settings - Fork 199
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
3단계 - 기능 우선 패키지 구성하기 #509
base: devfancy
Are you sure you want to change the base?
3단계 - 기능 우선 패키지 구성하기 #509
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.
안녕하세요~! 준용님,
이번 미션 잘 진행해주셨네요!! 💯
간단한 코멘트 남겼는데, 확인해주세요! 😄
즐거운 하루 되세요~!
@@ -1,4 +1,4 @@ | |||
package kitchenpos.infra; | |||
package kitchenpos.products.infra; |
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.
용어 사전과 모델링을 확인해보니, 상품
뿐만 아니라 메뉴
에도 사용되네요!
그래서 kitchenpos 패키지 하위에 common
안의 infra
모듈으로 옮겼습니다!
@@ -1,4 +1,4 @@ | |||
package kitchenpos.domain; | |||
package kitchenpos.eatinorders.domain; |
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.
👍 👍
@@ -1,4 +1,4 @@ | |||
package kitchenpos.domain; | |||
package kitchenpos.menus.domain; |
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.
기술적인 관점에서 Interface로 제공되는 JPARepository는 어디에 위치하면 좋을까요?
저는 JPARepository가 편의상 interface로 제공될뿐 구현체로 보여집니다.
DIP 원칙의 관점에서 어디에 위치하면 좋을지, 실제 Domain Package에서 테스트 대상이 되는것이 좋을지 고민해봐주세요~! 😄
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.
JPARepository 는 도메인 로직이 아닌 데이터 접근 기술에 관련된 것이고, Jpa가 아닌 Jdbc 같은 기술로 대체된다고 가정한다면 infra
모듈에 두는 것이 좋다고 생각합니다.
DIP 관점에서도 보면 Domain 레이어는 Infra 레이어에 의존하지 않도록 구성해야 한다고 봅니다.
그래서 infra 모듈로 옮겼습니다 !~
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.
제가 이해한게 맞으실까요?
안녕하세요 리뷰어님!
이번 3단계도 잘부탁드립니다.
이전 2단계 모델링을 기반으로 기능별 패키지로 분리했습니다.
잘부탁드립니다 !
persistence
로 넣으려고 했지만, 현재 기준에서는 Jpa만 사용하기 때문에, domain 부분에 넣었습니다.