[4기 황준호]JPA : Mission 3 제출입니다.#303
Open
juno-junho wants to merge 1 commit intoprgrms-be-devcourse:juno-junhofrom
Open
[4기 황준호]JPA : Mission 3 제출입니다.#303juno-junho wants to merge 1 commit intoprgrms-be-devcourse:juno-junhofrom
juno-junho wants to merge 1 commit intoprgrms-be-devcourse:juno-junhofrom
Conversation
hyeon-z
approved these changes
Jul 31, 2023
|
|
||
| import java.time.LocalDateTime; | ||
|
|
||
| @Getter |
There was a problem hiding this comment.
@ Getter 따로 안쓰이고 있는 것 같은데 삭제하면 좋을 것 같습니다!
Comment on lines
+20
to
+21
| private int price; | ||
| private int stockQuantity; |
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.
📌 과제 설명
Order, order_item, item의 연관관계 매핑을 실습해본다.
👩💻 요구 사항과 구현 내용
✅ PR 포인트 & 궁금한 점
cascade의 remove와 orphanRemoval = true의 차이점이 무엇일까요?
블로그 링크를 통해서 찾아 보았는데 잘 이해가 가지 않네요.
영한님 강의에서는 연관관계 편의 메서드 (값 세팅하는 메서드)는 둘 중 하나 정해서 생성하라고 하는데, fk가 있는 곳을 정해 세팅하는것이 맞을까요?