Merged
Conversation
|
Auto labels applied based on the title of the PR. |
ddingmin
commented
Mar 12, 2025
| factory: MongoDatabaseFactory, | ||
| context: MongoMappingContext, | ||
| ) = MappingMongoConverter(DefaultDbRefResolver(factory), context).apply { | ||
| setTypeMapper(DefaultMongoTypeMapper(null)) |
Member
Author
There was a problem hiding this comment.
기본 옵션은 직/역직렬화 할 class 정보를 DB에 저장하는데요, 패키지 정보를 굳이 저장하지 않아도 매핑이 가능해서 제거해주었습니다
ddingmin
commented
Mar 12, 2025
| username: ${MONGO_USER} | ||
| password: ${MONGO_PASSWORD} | ||
| database: ${MONGO_DB} | ||
| field-naming-strategy: org.springframework.data.mapping.model.SnakeCaseFieldNamingStrategy |
Member
Author
There was a problem hiding this comment.
몽고디비는 snake_case를 사용해서 데이터 베이스에 스네이크 케이스로 역/직렬화 해주도록 하는 옵션입니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 기능
🔎 기타