@@ -285,11 +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.
289
-
290
- .. seealso::
291
-
292
- :ref:`bsonrepresentation-annotation-code-example`
288
+ POJO property. See an example of :ref:`bsonrepresentation-annotation-code-example` on this page.
293
289
294
290
* - ``BsonId``
295
291
- Marks a property to serialize as the _id property.
@@ -299,28 +295,24 @@ package:
299
295
and/or deserialize a property.
300
296
301
297
* - ``BsonProperty``
302
- - Specifies a custom document field name when converting the POJO
303
- field to BSON. You can include a discriminator to serialize POJOs
304
- nested within the field.
305
-
306
- .. important::
298
+ - | Specifies a custom document field name when converting the POJO
299
+ field to BSON. You can include a discriminator to serialize POJOs
300
+ nested within the field.
301
+ |
302
+ | When applying ``@BsonProperty`` to a private field,
303
+ **you must also add getter and setter methods for that field to serialize and
304
+ customize the field name**.
307
305
308
- When applying ``@BsonProperty`` to a private field, you must also add
309
- getter and setter methods for that field to serialize and customize
310
- the field name.
311
306
312
307
* - ``BsonExtraElements``
313
- - Specifies the POJO field on which to deserialize all elements that are
314
- not mapped to a field. The POJO field must be one of the following
315
- types:
316
-
317
- - `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
318
- - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
319
- - ``Map<String, Object>``
320
-
321
- .. seealso::
322
-
323
- :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
308
+ - | Specifies the POJO field on which to deserialize all elements that are
309
+ not mapped to a field. The POJO field must be one of the following
310
+ types:
311
+ | - `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
312
+ | - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
313
+ | - ``Map<String, Object>``
314
+ |
315
+ | See an example of a :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`.
324
316
325
317
The following code snippet shows a sample POJO called ``Product`` that uses
326
318
several of the preceding annotations.
0 commit comments