-
Notifications
You must be signed in to change notification settings - Fork 196
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단계 - 기능 우선 패키지 #411
base: wooddy-kim
Are you sure you want to change the base?
3단계 - 기능 우선 패키지 #411
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.
안녕하세요 재우님 :)
3단계 미션 잘해주셨어요~
몇 가지 코멘트 남겼습니다
확인하고 다시 요청 주세요 🙇
import kitchenpos.domain.product.Product; | ||
import kitchenpos.domain.product.ProductRepository; |
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.
menu service 영역에 product 패키지가 의존되는 것 같은데요
이런 부분도 한번 의존성을 제거해보면 어떨까요?
import kitchenpos.domain.menu.Menu; | ||
import kitchenpos.domain.menu.MenuRepository; |
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.
주문서 서비스에 menu 패키지가 의존되는 것을 어떻게 막아볼 수 있을까요?
import kitchenpos.domain.menu.Menu; | ||
import kitchenpos.domain.menu.MenuProduct; | ||
import kitchenpos.domain.menu.MenuRepository; |
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.
위와 동일합니다!
menu 의 의존을 제거해보아요~
@@ -10,6 +10,7 @@ | |||
import jakarta.persistence.ManyToOne; | |||
import jakarta.persistence.Table; | |||
import jakarta.persistence.Transient; | |||
import kitchenpos.domain.product.Product; |
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.
MenuProduct 와 Product 는 같은 영역의 컨텍스트일까요?
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
import jakarta.persistence.Transient; | ||
import kitchenpos.domain.menu.Menu; |
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.
다음 미션인 리팩터링의 영역을 조금 침범할 수 도 있지만 고려해보면 좋을 것 같아요 :)
|
||
@Table(name = "order_line_item") | ||
@Entity | ||
public class DeliveryOrderLineItem { |
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.
새롭게 만들어진 영역의 컨텍스트가 있으면 테스트 코드 또한 작성해봐야 좋을 것 같습니다
테스트 코드가 리팩터링 후에도 유효해야하기 때문에 작성하는 것을 추천합니다!
작업 내역
궁금한 점