-
Notifications
You must be signed in to change notification settings - Fork 0
feat(core-jpa): BaseEntity 추상 클래스 분리 #57
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
Conversation
- UuidBaseEntity 클래스 추가 - BaseEntity -> LongBaseEntity 클래스명 변경 Refs #28
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.
@Ropung 님 작업하시느라 고생하셨습니다.
다만 UuidBaseEntity.java
에 수정 사항이 있습니다!
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.
👍 빠른 작업 감사합니다.
바쁘신 중에도 빠르게 게시해 주셔서 검토가 수월했습니다.
사소하게 발견된 작업 사항은,
바쁘시다 보면 누락되기 쉬운 항목들인 만큼
이렇게 서로 검토하는 시간이 더 유익할 수 있는 것 같습니다.
@Ropung 님께서 앞으로도 참여 가능하신 작업들에는 즉석에서 하나씩 참여해 주시면 든든할 것 같습니다!
저는 이대로 병합을 진행해 주셔도 좋아 보입니다.
(다른 리뷰자가 수정을 요청한 부분 및 관련 부분만 수정해 주세요!)
🚀 | 🏅 Approve! |
src/main/java/me/nettee/board/adapter/driven/persistence/entity/BoardEntityLong.java
Outdated
Show resolved
Hide resolved
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.
🎐 바쁘실거 같아 전체적으로 제가 수정하였습니다!
고생하셨습니다~~
@MappedSuperclass | ||
public abstract class UuidBaseEntity implements Serializable { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.UUID) |
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.
UUID 타입을 적용 후, UUID 자동 채번 설정을 하였습니다!
import java.time.Instant; | ||
|
||
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public abstract class BaseTimeEntity extends BaseEntity { | ||
public abstract class BaseTimeEntity implements Serializable { |
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.
BaseTimeEntity는 개발자가 직접 인스턴스를 생성을 방지하도록 추상 클래스로 바꾸었습니다.
Refs #28
Pull Request
Issues
Resolves #28
Description
How Has This Been Tested?
Additional Notes