---
title: "Discussion on \"Default mapping behavior for Spring Data MongoDB\" | Hashnode"
description: "Discussion on \"Default mapping behavior for Spring Data MongoDB\". If you have used Spring Data MongoDB, have you ever thought of what exactly is the default mapping behavior from MongoDB Document to Java POJO? What do I mean by that?\nImagine you have the following Java POJO\n@Getter\n@Builder\n@ToString\n@TypeAlias(\"pe..."
url: "https://hashnode.com/posts/default-mapping-behavior-for-spring-data-mongodb/63628f6014fee76c2c8a7953"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Default mapping behavior for Spring Data MongoDB](https://bwgjoseph.com/default-mapping-behavior-for-spring-data-mongodb?utm_source=hashnode&utm_medium=feed)

If you have used Spring Data MongoDB, have you ever thought of what exactly is the default mapping behavior from MongoDB Document to Java POJO? What do I mean by that? Imagine you have the following Java POJO @Getter @Builder @ToString @TypeAlias("pe...

Nov 2, 2022 · 6 min read · bwgjoseph.com  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#spring-data](https://hashnode.com/tag/spring-data)

## Written by

[Joseph Gan](https://hashnode.com/@bwgjoseph)

@bwgjoseph · Singapore

  
[View profile](https://hashnode.com/@bwgjoseph)

Advocate for better developer's productivity and experience Documenting my learnings and sharing it

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
