-
Notifications
You must be signed in to change notification settings - Fork 5
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 Auditing을 위한 BaseEntity 생성 #44
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.
간단한 리뷰 남겨드렸는데, 반영해 주시면 감사하겠습니다!
혹시 다른 의견 있으시다면 코멘트 남겨주세요 :)
고생 많으셨습니다!
|
||
} |
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.
클래스 마지막에 개행 빼주시면 감사하겠습니다!!
(리건씌가 넣으신 건 아니긴 한데,,, 빼주시면 감사하겠습니다 ㅎㅎ)
public class BaseEntity { | ||
|
||
@CreatedDate | ||
private LocalDateTime createdAt; | ||
|
||
@LastModifiedDate | ||
private LocalDateTime modifiedAt; | ||
} |
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.
인스턴스화가 불가능하도록 abstract class로 정의해도 좋을 것 같아요!
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.
BaseEntity 도입 확인했습니다.
간단한 코멘트 확인 한번 부탁드려요옵
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public class BaseEntity { |
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.
낙낙한테 들었는데 저도 BaseEntity는 Abstract 이 좋을 것 같습니다
불필요한 인스턴스화 막을 수 있을 것 같아요
방어적인 코드로의 개선, 리건은 어떻게 생각하시나유?
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.
저도 동의합니다! 고쳐보겠습니다!
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public class BaseEntity { |
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.
soft delete 도입하기로 했슴다
deletedAt
추가 부탁드려용
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.
넵!
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.
soft delete 까지 확인했습니다 👍
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 드릴게욥
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.
수고하셨습니다! LGTM
* refactor: 패키지 구조 변경 * feat: JPA Auditing을 위한 BaseEntity 추가 * refactor: BaseEntity 추상 클래스화 및 코드 컨벤션 준수
* refactor: 패키지 구조 변경 * feat: JPA Auditing을 위한 BaseEntity 추가 * refactor: BaseEntity 추상 클래스화 및 코드 컨벤션 준수
✅ 작업 내용