Skip to content

chore: 몽고디비 셋업#158

Merged
ddingmin merged 1 commit intomainfrom
feature/mongo-setup
Mar 15, 2025
Merged

chore: 몽고디비 셋업#158
ddingmin merged 1 commit intomainfrom
feature/mongo-setup

Conversation

@ddingmin
Copy link
Copy Markdown
Member

💡 기능

  • 몽고디비를 셋업했어요
    • 설정한 내용은 코멘트 남기도록 하겠습니당

🔎 기타

@ddingmin ddingmin requested a review from CChuYong as a code owner March 12, 2025 13:37
@github-actions
Copy link
Copy Markdown

Auto labels applied based on the title of the PR.

@github-actions github-actions bot added the chore label Mar 12, 2025
factory: MongoDatabaseFactory,
context: MongoMappingContext,
) = MappingMongoConverter(DefaultDbRefResolver(factory), context).apply {
setTypeMapper(DefaultMongoTypeMapper(null))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

기본 옵션은 직/역직렬화 할 class 정보를 DB에 저장하는데요, 패키지 정보를 굳이 저장하지 않아도 매핑이 가능해서 제거해주었습니다

username: ${MONGO_USER}
password: ${MONGO_PASSWORD}
database: ${MONGO_DB}
field-naming-strategy: org.springframework.data.mapping.model.SnakeCaseFieldNamingStrategy
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

몽고디비는 snake_case를 사용해서 데이터 베이스에 스네이크 케이스로 역/직렬화 해주도록 하는 옵션입니다!

Copy link
Copy Markdown
Member

@CChuYong CChuYong left a comment

Choose a reason for hiding this comment

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

LGTM
오오 굳...

@ddingmin ddingmin merged commit 821060a into main Mar 15, 2025
1 check passed
@ddingmin ddingmin deleted the feature/mongo-setup branch March 15, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants