[기능] order 도메인 구조 수정#159
Open
Conversation
- Order 생성 시 필요한 검증 및 처리를 팩토리패턴으로 분리해 처리하도록 수정
Co-authored-by: Dr-KoKo <97681286+Dr-KoKo@users.noreply.github.com>
Hyeon-Uk
reviewed
Sep 22, 2024
| this.dateTimeProvider = dateTimeProvider; | ||
| } | ||
|
|
||
| public Order createOrder(Customer requester, List<CartItem> cartItems) { |
Contributor
There was a problem hiding this comment.
현재는 withdraw가 마지막 로직이라 상관은 없겠지만, withdraw이후에 exception이 발생하게 된다면 잔고의 롤백 처리는 안될거같아요! 혹시 모르니 추가해주는게 좋을거 같아요!
Member
Author
There was a problem hiding this comment.
@Hyeon-Uk 혹시 롤백이 발생하지 않는 경우의 예시를 들어주실 수 있나요?? 정확히 어떤 부분인지 모르겠어요
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 다음 이슈를 해결했어요.
Issue Link
💡 이슈를 처리하면서 추가된 코드가 있어요.
Team1-3K1K/src/main/java/camp/woowak/lab/order/domain/OrderFactory.java
Lines 14 to 48 in 3bf99bc
💡 이런 고민을 했어요.
✅ 셀프 체크리스트