-
Notifications
You must be signed in to change notification settings - Fork 43
[Docs+] Implementing Bulk Writes using Spring Boot for MongoDB #687
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
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docs-java ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Spring Data MongoDB | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Spring Data MongoDB is the official Spring Data ODM for MongoDB. It allows you to |
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.
Spring Data MongoDB is the official Spring Data ODM for MongoDB. It allows you to | |
Spring Data MongoDB is the official Spring Data object document mapper (ODM) for MongoDB. It allows you to |
Also found this article by Alex Bevi about ODMs etc. Interestingly, he calls it a Java ORM; probably good to sync with him on our official terminology.
Dependency Injection | ||
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Dependency injection (DI) is a core principle of the Spring Framework. It |
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.
Q: worth explaining Spring Framework vs. Spring Boot? I'm new to both and had to look it up.
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Dependency injection (DI) is a core principle of the Spring Framework. It | ||
allows objects, called beans, to be created and managed by the Spring container, |
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.
I: italics
allows objects, called beans, to be created and managed by the Spring container, | |
allows objects, called *beans*, to be created and managed by the Spring container, |
Dependency injection (DI) is a core principle of the Spring Framework. It | ||
allows objects, called beans, to be created and managed by the Spring container, | ||
then injected into other beans that use them. This is distinct from typical | ||
object-oriented development where classes are responsible for initializing and |
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.
object-oriented development where classes are responsible for initializing and | |
object-oriented development, where classes are responsible for initializing and |
allows objects, called beans, to be created and managed by the Spring container, | ||
then injected into other beans that use them. This is distinct from typical | ||
object-oriented development where classes are responsible for initializing and | ||
constructing the objects they use. |
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.
constructing the objects they use. | |
constructing the objects that they use. |
:start-after: # start-mongoconfig-properties | ||
:end-before: # end-mongoconfig-properties | ||
:language: console | ||
:dedent: |
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.
:dedent: |
section of the Spring Data MongoDB documentation. | ||
|
||
The ``@Id`` annotation in the following code indicates that the ``id`` field | ||
maps to the ``_id`` field which is used as a unique identifier in MongoDB documents. You can choose any field of |
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.
maps to the ``_id`` field which is used as a unique identifier in MongoDB documents. You can choose any field of | |
maps to the ``_id`` field, which is used as a unique identifier in MongoDB documents. You can choose any field of |
:start-after: // start-products-class | ||
:end-before: // end-products-class | ||
:language: java | ||
:dedent: |
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.
:dedent: |
Define a Repository to Store Your Products | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The ``ProductRepository`` will manage a collection of ``Product`` objects. |
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.
The ``ProductRepository`` will manage a collection of ``Product`` objects. | |
The ``ProductRepository`` object will manage a collection of ``Product`` objects. |
applies throughout as needed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The ``ProductRepository`` will manage a collection of ``Product`` objects. | ||
Your ``ProductRepository`` references the client creation methods defined in the ``MongoConfig`` class, which you |
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.
Your ``ProductRepository`` references the client creation methods defined in the ``MongoConfig`` class, which you | |
Your ``ProductRepository`` references the client-creation methods defined in the ``MongoConfig`` class, which you |
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-48901
Original post - https://www.mongodb.com/developer/languages/java/java-spring-bulk-writes/
Staging Links
Self-Review Checklist