Skip to content

hyungin0505/week5 과제 제출#77

Open
hyungin0505 wants to merge 26 commits intomainfrom
hyungin0505/week5
Open

hyungin0505/week5 과제 제출#77
hyungin0505 wants to merge 26 commits intomainfrom
hyungin0505/week5

Conversation

@hyungin0505
Copy link
Member

ERD


  • 알림 설정 여부 ON/OFF 열거형 사용

@hyungin0505 hyungin0505 linked an issue May 19, 2025 that may be closed by this pull request
Copy link

@macqueen0987 macqueen0987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

생각보다 테이블 수가 많아서 놀랐지만 잘 만드신거 같습니다!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이럴경우 enum 보다는 카럼명을 isInactive 와 같이 설정하는걸 저는 개인적으로 좋아합니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isInactive로 하면 TRUE/FALSE로 비활성화 여부를 나타내는데 직관적이지 않은 느낌이라 저는 이렇게 하긴 했습니다

Copy link

@dp44rk dp44rk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

많이 배워갑니다!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setter 대신 builder 어노테이션을 사용하면 어느 부분에서 더 좋은가요?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dto가 아니라 엔티티기 때문에 한 번 생성할 때 값을 넣고 불변을 유지하는게 무결성 측면에서 유리하다고 알고 있습니다

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 워크북에 @builder로 되어 있어서 쓰긴 했는데 위에서 잘 설명해주셨네요
저도 방금 찾아보면서 알았습니담..

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확장성을 고려해 id들은 long을 사용하는게 확실히 좋은것 같네요

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setNotify 기능은 생각지도 못했는데 참신한것 같습니다

Copy link

@glucosei glucosei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깔끔하고 좋은 엔티티 구성인 것 같습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[5주차] : JPA 과제 제출

4 participants