-
Notifications
You must be signed in to change notification settings - Fork 3
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
[feat] users 공통 코드 작성 #7
Conversation
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.
리뷰 반영하시면 Approve 하겠습니다! 수고하셨습니다 😊
|
||
import java.util.UUID; | ||
|
||
@Repository |
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.
여기도 어노테이션 제거 해주셔도 됩니다~
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Builder |
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.
@Builder
는 사용하실 때 달아두면 좋을 것 같습니다 ~
@Getter | ||
@Builder | ||
@Entity | ||
@Table(name = "codes") |
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.
DB 테이블을 추가하셨다면 노션에 ERD도 변경 해주시면 좋을 것 같아요 ~
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.
노션에 추가해놓겠습니다!
@Column(name = "refresh_token", nullable = false) | ||
private String refreshToken; | ||
|
||
@ManyToOne |
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.
여기도 즉시로딩과 지연로딩에 대해 찾아보시고 적용해주시면 좋을 것 같습니다!
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "code_id", nullable = false) |
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.
@Column
의 name 조건은 왜 사용하는지 알고 계신가요??? 확인해보시고 사용하시면 좋을 것 같습니다 ! 다른 클래스들도 전부 ㅎㅎㅎ
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.
수고하셨습니다 ~!😊
수고하셨습니다 👏👏 |
Issue
PR 타입(하나 이상의 PR 타입을 선택해주세요)
반영 브랜치
feat/user -> dev
변경 사항
users 공통 코드 작성