@@ -297,24 +297,20 @@ 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.
301
-
302
- |
303
- | When applying ``@BsonProperty`` to a private field,
300
+ nested within the field. When applying ``@BsonProperty`` to a private field,
304
301
**you must also add getter and setter methods for that field to serialize and
305
302
customize the field name**.
306
303
307
304
308
305
* - ``BsonExtraElements``
309
- - Specifies the POJO field on which to deserialize all elements that are
310
- not mapped to a field. The POJO field must be one of the following
311
- types:
312
-
313
- - `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
314
- - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
315
- - ``Map<String, Object>``
316
-
317
- | See an example of :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
306
+ - | Specifies the POJO field on which to deserialize all elements that are
307
+ not mapped to a field. The POJO field must be one of the following
308
+ types:
309
+ - `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
310
+ - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
311
+ - ``Map<String, Object>``
312
+ |
313
+ | See an example of :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
318
314
319
315
The following code snippet shows a sample POJO called ``Product`` that uses
320
316
several of the preceding annotations.
0 commit comments