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 Auditing을 위한 BaseEntity 생성 #44

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

hangillee
Copy link

✅ 작업 내용

  • 패키지 구조 리팩토링
  • BaseEntity 설계 및 구현

@hangillee hangillee added the BE label Jul 17, 2024
@hangillee hangillee added this to the sprint 2 milestone Jul 17, 2024
@hangillee hangillee self-assigned this Jul 17, 2024
@hangillee hangillee linked an issue Jul 17, 2024 that may be closed by this pull request
2 tasks
Copy link

github-actions bot commented Jul 17, 2024

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 317c247.

♻️ This comment has been updated with latest results.

Copy link
Member

@nak-honest nak-honest left a comment

Choose a reason for hiding this comment

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

간단한 리뷰 남겨드렸는데, 반영해 주시면 감사하겠습니다!
혹시 다른 의견 있으시다면 코멘트 남겨주세요 :)

고생 많으셨습니다!

Comment on lines 14 to 15

}
Copy link
Member

@nak-honest nak-honest Jul 17, 2024

Choose a reason for hiding this comment

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

클래스 마지막에 개행 빼주시면 감사하겠습니다!!
(리건씌가 넣으신 건 아니긴 한데,,, 빼주시면 감사하겠습니다 ㅎㅎ)

Comment on lines 14 to 21
public class BaseEntity {

@CreatedDate
private LocalDateTime createdAt;

@LastModifiedDate
private LocalDateTime modifiedAt;
}
Copy link
Member

Choose a reason for hiding this comment

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

인스턴스화가 불가능하도록 abstract class로 정의해도 좋을 것 같아요!

Copy link

@Libienz Libienz left a comment

Choose a reason for hiding this comment

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

BaseEntity 도입 확인했습니다.

간단한 코멘트 확인 한번 부탁드려요옵

Comment on lines 11 to 14
@Getter
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public class BaseEntity {
Copy link

Choose a reason for hiding this comment

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

낙낙한테 들었는데 저도 BaseEntity는 Abstract 이 좋을 것 같습니다
불필요한 인스턴스화 막을 수 있을 것 같아요

방어적인 코드로의 개선, 리건은 어떻게 생각하시나유?

Copy link
Author

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 {

Choose a reason for hiding this comment

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

soft delete 도입하기로 했슴다
deletedAt 추가 부탁드려용

Copy link
Author

Choose a reason for hiding this comment

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

넵!

Copy link

@Libienz Libienz left a comment

Choose a reason for hiding this comment

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

soft delete 까지 확인했습니다 👍

Copy link
Member

@nak-honest nak-honest left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다!!
바로 approve 드릴게욥

Copy link

@eunjungL eunjungL left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! LGTM

@hangillee hangillee merged commit 138681a into develop/be Jul 17, 2024
3 checks passed
@hangillee hangillee deleted the feature/be/#43 branch July 19, 2024 02:14
eunjungL pushed a commit that referenced this pull request Jul 30, 2024
* refactor: 패키지 구조 변경

* feat: JPA Auditing을 위한 BaseEntity 추가

* refactor: BaseEntity 추상 클래스화 및 코드 컨벤션 준수
hangillee added a commit to hangillee/2024-touroot that referenced this pull request Aug 20, 2024
* refactor: 패키지 구조 변경

* feat: JPA Auditing을 위한 BaseEntity 추가

* refactor: BaseEntity 추상 클래스화 및 코드 컨벤션 준수
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feature] - JPA Auditing을 위한 BaseEntity 생성
4 participants