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

JPA 및 MongoDB의 기본 설정을 작성 #7

Merged
merged 7 commits into from
Sep 14, 2024
Merged

JPA 및 MongoDB의 기본 설정을 작성 #7

merged 7 commits into from
Sep 14, 2024

Conversation

KIMSEI1124
Copy link
Member

@KIMSEI1124 KIMSEI1124 commented Sep 9, 2024

📑 개요

✅ PR 체크리스트


  • 🔀 PR 제목의 형식을 잘 작성했나요?
  • 💯 테스트는 잘 통과했나요?
  • 🏗️ 빌드는 성공했나요?
  • 🧹 불필요한 코드는 제거했나요?
  • 💭 이슈는 등록했나요?
  • 🏷️ 라벨은 등록했나요?

🚀 상세 작업 내용


jpa-core

  • Base Entity 작성
  • Auditing 작성
@EnableJpaAuditing // JPA 설정
@Configuration
public class JpaAuditingConfig {
}

mongo-core

  • Base Entity 작성
  • Auditing 작성
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public abstract class MongoBaseEntity {
	@CreatedDate
	@Field(name = "created_at", write = Field.Write.NON_NULL)
	private LocalDateTime createdAt;

	@LastModifiedDate
	@Field(name = "modified_at", write = Field.Write.NON_NULL)
	private LocalDateTime modifiedAt;

	@Field(name = "deleted_at")
	private LocalDateTime deletedAt;
// ETC...
}

MongoDB는 따로 설정할 필요가 없이 위와 같이 작성하면 적용이 됩니다.

common

  • errorCode 작성

📁 ETC


@KIMSEI1124 KIMSEI1124 requested a review from sjhjack September 9, 2024 09:29
@KIMSEI1124 KIMSEI1124 self-assigned this Sep 9, 2024
@KIMSEI1124 KIMSEI1124 requested a review from jiwon83 September 9, 2024 09:31
@KIMSEI1124 KIMSEI1124 linked an issue Sep 9, 2024 that may be closed by this pull request
@KIMSEI1124 KIMSEI1124 added the Priority: 🙏 P1 꼭 반영해주세요 (Request changes) label Sep 9, 2024
Copy link
Member

@jiwon83 jiwon83 left a comment

Choose a reason for hiding this comment

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

LGTM

@sjhjack
Copy link
Contributor

sjhjack commented Sep 13, 2024

write = Field.Write.NON_NULL 옵션은 처음 알았어요! 고생하셨습니다.

@KIMSEI1124
Copy link
Member Author

@jiwon83 @sjhjack

2024-09-13_17-51-55

해당 부분에서 코멘트 작성하신 후 Approve 해주시면 감사합니다!

만약 변경해야하는 것들이 있다면 Request changes로 해주시면 됩니다!

@KIMSEI1124 KIMSEI1124 requested a review from jiwon83 September 13, 2024 08:54
Copy link
Contributor

@sjhjack sjhjack left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!

@KIMSEI1124 KIMSEI1124 merged commit 77b920f into main Sep 14, 2024
@KIMSEI1124 KIMSEI1124 deleted the feat/#6 branch September 14, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JPA 및 MongoDB의 기본 설정을 작성한다.
3 participants