File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -267,8 +267,8 @@ settings to modify the driver's behavior:
267
267
| If you want to enable the processing of TXT records associated with the host,
268
268
specify the SRV host in the connection string
269
269
using the ``applyConnectionString()`` method.
270
- |
271
- | For example:
270
+ |
271
+ | For example:
272
272
273
273
.. code-block:: java
274
274
:emphasize-lines: 3
Original file line number Diff line number Diff line change @@ -298,20 +298,22 @@ package:
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
300
nested within the field.
301
- |
302
- | When applying ``@BsonProperty`` to a private field,
301
+
302
+ |
303
+ | When applying ``@BsonProperty`` to a private field,
303
304
**you must also add getter and setter methods for that field to serialize and
304
305
customize the field name**.
305
306
307
+
306
308
* - ``BsonExtraElements``
307
309
- Specifies the POJO field on which to deserialize all elements that are
308
310
not mapped to a field. The POJO field must be one of the following
309
311
types:
310
312
311
313
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
312
314
- `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__
313
- - ``Map<String, Object>``
314
-
315
+ - ``Map<String, Object>``
316
+
315
317
| See an example of :ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
316
318
317
319
The following code snippet shows a sample POJO called ``Product`` that uses
You can’t perform that action at this time.
0 commit comments