@@ -285,7 +285,7 @@ package:
285
285
286
286
* - ``BsonRepresentation``
287
287
- Specifies the BSON type used to store the value when different from the
288
- POJO property. :ref:`bsonrepresentation-annotation-code-example`
288
+ POJO property. See an example of :ref:`bsonrepresentation-annotation-code-example` on this page.
289
289
290
290
* - ``BsonId``
291
291
- Marks a property to serialize as the _id property.
@@ -297,7 +297,9 @@ package:
297
297
* - ``BsonProperty``
298
298
- Specifies a custom document field name when converting the POJO
299
299
field to BSON. You can include a discriminator to serialize POJOs
300
- nested within the field. When applying ``@BsonProperty`` to a private field,
300
+ nested within the field.
301
+ |
302
+ | When applying ``@BsonProperty`` to a private field,
301
303
**you must also add getter and setter methods for that field to serialize and
302
304
customize the field name**.
303
305
@@ -310,7 +312,7 @@ package:
310
312
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
311
313
- ``Map<String, Object>``
312
314
313
- :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
315
+ | See an example of :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
314
316
315
317
The following code snippet shows a sample POJO called ``Product`` that uses
316
318
several of the preceding annotations.
0 commit comments