-
Notifications
You must be signed in to change notification settings - Fork 43
DOCSP-22844: POJO CRUD examples #512
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
Conversation
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.
Looks really good! A few suggestions / questions from me
- ``PojoCodecProvider``, a codec provider that includes | ||
:ref:`Codecs <fundamentals-codecs>` that define how to | ||
encode and decode the data between the POJO format and BSON. The | ||
provider also specifies which POJO classes or packages that the codecs |
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: is Codec uppercase or lowercase? Both are used in this description
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.
changed all non-monospace to lowercase
provider also specifies which POJO classes or packages that the codecs | ||
apply to. | ||
- ``CodecRegistry`` instance that contains the codecs and other related information. | ||
- ``MongoDatabase`` or ``MongoCollection`` instance configured to use the |
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.
S: to match the wording in the bullet below
- ``MongoDatabase`` or ``MongoCollection`` instance configured to use the | |
- ``MongoDatabase`` or ``MongoCollection`` instance that is configured to use the |
The following steps perform each of the configuration requirements to | ||
use the sample POJO defined in the preceding section: |
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.
S: the wording here kinda implies that the step itself is the subject taking some action; you could reword so that the reader is the subject and the one taking action
The following steps perform each of the configuration requirements to | |
use the sample POJO defined in the preceding section: | |
Perform the following steps to meet the configuration requirements defined in the preceding section: |
Codecs in the ``CodecRegistry``. You can configure either a database | ||
or collection to specify the Codecs. |
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: same codec capitalization question as above
|
||
- Instantiate a ``PojoCodecProvider`` which contains codecs which define how to | ||
- Instantiate a ``PojoCodecProvider`` which contains codecs that define how to | ||
encode/decode data between BSON and the POJO fields. |
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.
S: to remove the slash
encode/decode data between BSON and the POJO fields. | |
encode and decode data between BSON and the POJO fields. |
- ``PojoCodecProvider``, a codec provider that includes | ||
:ref:`Codecs <fundamentals-codecs>` that define how 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.
S: a little repetitive
- ``PojoCodecProvider``, a codec provider that includes | |
:ref:`Codecs <fundamentals-codecs>` that define how to | |
- ``PojoCodecProvider``, which provides | |
:ref:`Codecs <fundamentals-codecs>` that define how 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.
LGTM + suggestion!
@@ -238,12 +209,13 @@ see the following API documentation: | |||
Summary | |||
------- | |||
|
|||
In this guide, we explained how to convert data between BSON and POJO fields | |||
by performing the following: | |||
In this guide, we explain how to convert data between BSON and POJO fields |
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.
S: since the style guide suggests limiting "we", you could reword to something like:
In this guide, we explain how to convert data between BSON and POJO fields | |
This guide describes how to convert data between BSON and POJO fields |
* DOCSP-22844: expand pojo example+revisions * full first draft * small fixes * add taxonomy * vale fix * NR PR fixes 1 * NR suggestion (cherry picked from commit 992dda6)
* DOCSP-22844: expand pojo example+revisions * full first draft * small fixes * add taxonomy * vale fix * NR PR fixes 1 * NR suggestion (cherry picked from commit 992dda6)
* DOCSP-22844: expand pojo example+revisions * full first draft * small fixes * add taxonomy * vale fix * NR PR fixes 1 * NR suggestion (cherry picked from commit 992dda6)
* DOCSP-22844: expand pojo example+revisions * full first draft * small fixes * add taxonomy * vale fix * NR PR fixes 1 * NR suggestion (cherry picked from commit 992dda6)
* DOCSP-22844: expand pojo example+revisions * full first draft * small fixes * add taxonomy * vale fix * NR PR fixes 1 * NR suggestion (cherry picked from commit 992dda6)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-22844
Staging - https://preview-mongodbrustagir.gatsbyjs.io/java/DOCSP-33844-pojo-examples/fundamentals/data-formats/document-data-format-pojo/
Self-Review Checklist