-
Notifications
You must be signed in to change notification settings - Fork 1
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
[기능] order 도메인 구조 수정 #159
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "feature/128_kimhyun5u_order-\uB3C4\uBA54\uC778-\uAD6C\uC870-\uC218\uC815"
[기능] order 도메인 구조 수정 #159
Conversation
- Order 생성 시 필요한 검증 및 처리를 팩토리패턴으로 분리해 처리하도록 수정
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.
계속 미뤄두고 있었는데.. 처리해주셔서 감사합니다!
Co-authored-by: Dr-KoKo <[email protected]>
this.dateTimeProvider = dateTimeProvider; | ||
} | ||
|
||
public Order createOrder(Customer requester, List<CartItem> cartItems) { |
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.
현재는 withdraw가 마지막 로직이라 상관은 없겠지만, withdraw이후에 exception이 발생하게 된다면 잔고의 롤백 처리는 안될거같아요! 혹시 모르니 추가해주는게 좋을거 같아요!
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.
@Hyeon-Uk 혹시 롤백이 발생하지 않는 경우의 예시를 들어주실 수 있나요?? 정확히 어떤 부분인지 모르겠어요
💡 다음 이슈를 해결했어요.
Issue Link
💡 이슈를 처리하면서 추가된 코드가 있어요.
Team1-3K1K/src/main/java/camp/woowak/lab/order/domain/OrderFactory.java
Lines 14 to 48 in 3bf99bc
💡 이런 고민을 했어요.
✅ 셀프 체크리스트