Skip to content
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

[Feature] 도메인 객체에 JPA 엔티티 적용: Show #58

Closed
2 of 4 tasks
pollra opened this issue Sep 12, 2023 · 0 comments · Fixed by #63 or #64
Closed
2 of 4 tasks

[Feature] 도메인 객체에 JPA 엔티티 적용: Show #58

pollra opened this issue Sep 12, 2023 · 0 comments · Fixed by #63 or #64
Assignees
Labels
Milestone

Comments

@pollra
Copy link
Collaborator

pollra commented Sep 12, 2023

목표

도메인 엔티티 객체에 JPA 엔티티를 적용합니다
연관관계 매핑을 수행하며 Repository 또한 함께 변경합니다

방법

  • 이미 작성된 Show 도메인 객체와 하위 객체들의 연관 관계 도메인들에 JPA 를 적용합니다.
  • Repository 를 변경합니다. (단, Persist 에서 이야기 된 항목은 도메인 객체로도 옮깁니다.)
  • Persist 객체를 제거합니다.
  • 테스트 코드를 통과합니다.

대안

  • [Domain]Persist 객체를 생성하고 해당 객체에 JPA 엔티티를 적용합니다.
  • JPA 를 적용하지 않고 다른 방법을 알아봅니다

주의사항

  • 생성자 및 Getter, Setter 의 접근제한을 protected 로 설정하여 외부에서는 볼 수 없도록 합니다
  • 연관 관계 매핑을 수행합니다.

etc

조회에서 발생할 수 있는 N+1 은 현재 브랜치에서 고민하지 않습니다

@pollra pollra added the feature label Sep 12, 2023
@pollra pollra modified the milestones: sprint #9-1, sprint #9-2 Sep 12, 2023
@pollra pollra changed the title [Feature] 도메인 객체에 JPA 엔티티 적용 [Feature] 도메인 객체에 JPA 엔티티 적용: Show Sep 12, 2023
@pollra pollra self-assigned this Sep 12, 2023
@pollra pollra linked a pull request Sep 12, 2023 that will close this issue
6 tasks
@pollra pollra linked a pull request Sep 12, 2023 that will close this issue
3 tasks
@pollra pollra linked a pull request Sep 13, 2023 that will close this issue
3 tasks
@f-lab-lion f-lab-lion added the 2 2h label Sep 13, 2023
pollra added a commit that referenced this issue Sep 16, 2023
…ow-domain-object

[Feature] 도메인 객체에 JPA 엔티티 적용: Show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment