-
Notifications
You must be signed in to change notification settings - Fork 43
DOCSP-42961: Removed Nested Components #581
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
Changes from 8 commits
577890a
a54e603
8fb5894
6b40e89
07a82f5
7103e2f
19bdf64
38db069
4f85b13
75f8585
4262df6
697f184
3ebef66
646b22e
9a899e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -285,11 +285,7 @@ package: | |||||||||||||||||
|
||||||||||||||||||
* - ``BsonRepresentation`` | ||||||||||||||||||
- Specifies the BSON type used to store the value when different from the | ||||||||||||||||||
POJO property. | ||||||||||||||||||
|
||||||||||||||||||
.. seealso:: | ||||||||||||||||||
|
||||||||||||||||||
:ref:`bsonrepresentation-annotation-code-example` | ||||||||||||||||||
POJO property. :ref:`bsonrepresentation-annotation-code-example` | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Suggestion: Think it would be good to keep consistent with the sentence formatting and add an intro to the example. Also nice to indicate that the example is below on the same page. |
||||||||||||||||||
|
||||||||||||||||||
* - ``BsonId`` | ||||||||||||||||||
- Marks a property to serialize as the _id property. | ||||||||||||||||||
|
@@ -301,13 +297,9 @@ package: | |||||||||||||||||
* - ``BsonProperty`` | ||||||||||||||||||
- Specifies a custom document field name when converting the POJO | ||||||||||||||||||
field to BSON. You can include a discriminator to serialize POJOs | ||||||||||||||||||
nested within the field. | ||||||||||||||||||
|
||||||||||||||||||
.. important:: | ||||||||||||||||||
|
||||||||||||||||||
When applying ``@BsonProperty`` to a private field, you must also add | ||||||||||||||||||
getter and setter methods for that field to serialize and customize | ||||||||||||||||||
the field name. | ||||||||||||||||||
nested within the field. When applying ``@BsonProperty`` to a private field, | ||||||||||||||||||
**you must also add getter and setter methods for that field to serialize and | ||||||||||||||||||
customize the field name**. | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Suggestion: Separate implementation detail from rest of definition for ease of reading. |
||||||||||||||||||
|
||||||||||||||||||
* - ``BsonExtraElements`` | ||||||||||||||||||
- Specifies the POJO field on which to deserialize all elements that are | ||||||||||||||||||
|
@@ -316,11 +308,9 @@ package: | |||||||||||||||||
|
||||||||||||||||||
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__ | ||||||||||||||||||
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | ||||||||||||||||||
- ``Map<String, Object>`` | ||||||||||||||||||
|
||||||||||||||||||
.. seealso:: | ||||||||||||||||||
|
||||||||||||||||||
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` | ||||||||||||||||||
- ``Map<String, Object>`` | ||||||||||||||||||
|
||||||||||||||||||
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>` | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Suggestion: Same as above, think it would be nice to introduce ex. in a sentence. |
||||||||||||||||||
|
||||||||||||||||||
The following code snippet shows a sample POJO called ``Product`` that uses | ||||||||||||||||||
several of the preceding annotations. | ||||||||||||||||||
|
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.
Suggestion: Separate the method definition from the implementation details. Think it looks a bit crowded as is and seems to match the format of the next table entry.