Skip to content

Commit 577890a

Browse files
committed
DOCSP-42961: Removed Nested Components
1 parent 802bc91 commit 577890a

File tree

2 files changed

+16
-32
lines changed

2 files changed

+16
-32
lines changed

source/fundamentals/connection/mongoclientsettings.txt

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -259,22 +259,16 @@ settings to modify the driver's behavior:
259259

260260
* - ``serverSelector()``
261261
- Adds a server selector to apply before server selection.
262-
262+
263263
* - ``srvHost()``
264-
- Sets the host name to use to look up an SRV DNS record to find the
265-
MongoDB hosts.
266-
267-
.. note::
268-
269-
When setting ``srvHost``, the driver does not process any
270-
associated TXT records associated with the host.
271-
272-
If you want to enable the processing of TXT records, you must
273-
specify the SRV host in the connection string using the
274-
``applyConnectionString()`` method.
275-
276-
.. code-block:: java
277-
:emphasize-lines: 3
264+
- | Sets the host name to use to look up an SRV DNS record to find the
265+
MongoDB hosts. When setting ``srvHost``, the driver does not process any associated
266+
TXT records associated with the host. If you want to enable the processing of TXT records,
267+
you must specify the SRV host in the connection string
268+
using the ``applyConnectionString()`` method.
269+
270+
| .. code-block:: java
271+
:emphasize-lines: 3
278272

279273
MongoClient mongoClient = MongoClients.create(
280274
MongoClientSettings.builder()

source/fundamentals/data-formats/pojo-customization.txt

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,7 @@ package:
285285

286286
* - ``BsonRepresentation``
287287
- 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. :ref:`bsonrepresentation-annotation-code-example`
293289

294290
* - ``BsonId``
295291
- Marks a property to serialize as the _id property.
@@ -301,13 +297,9 @@ package:
301297
* - ``BsonProperty``
302298
- Specifies a custom document field name when converting the POJO
303299
field to BSON. You can include a discriminator to serialize POJOs
304-
nested within the field.
305-
306-
.. important::
307-
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.
300+
nested within the field. When applying ``@BsonProperty`` to a private field,
301+
**you must also add getter and setter methods for that field to serialize and
302+
customize the field name**.
311303

312304
* - ``BsonExtraElements``
313305
- Specifies the POJO field on which to deserialize all elements that are
@@ -316,11 +308,9 @@ package:
316308

317309
- `Document <{+api+}/apidocs/bson/org/bson/Document.html>`__
318310
- `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>`
311+
- ``Map<String, Object>``
312+
313+
:ref:`BsonExtraElements Annotation Example <bsonextraelements-annotation-code-example>`
324314

325315
The following code snippet shows a sample POJO called ``Product`` that uses
326316
several of the preceding annotations.

0 commit comments

Comments
 (0)