From 9f0b6c4f00be49d9370ebf1a29897d4152ab5833 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 31 Jan 2025 15:11:39 -0500 Subject: [PATCH 1/3] remove redundant uses of example --- source/fundamentals/data-formats/pojo-customization.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/fundamentals/data-formats/pojo-customization.txt b/source/fundamentals/data-formats/pojo-customization.txt index ea54ddce4..364ad5f4b 100644 --- a/source/fundamentals/data-formats/pojo-customization.txt +++ b/source/fundamentals/data-formats/pojo-customization.txt @@ -285,7 +285,7 @@ package: * - ``BsonRepresentation`` - Specifies the BSON type used to store the value when different from the - POJO property. See an example of :ref:`bsonrepresentation-annotation-code-example` on this page. + POJO property. See the :ref:`bsonrepresentation-annotation-code-example` on this page. * - ``BsonId`` - Marks a property to serialize as the _id property. @@ -312,7 +312,8 @@ package: | - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | - ``Map`` | - | See an example of a :ref:`BsonExtraElements Annotation Example `. + | See the :ref:`BsonExtraElements Annotation Example + ` on this page. The following code snippet shows a sample POJO called ``Product`` that uses several of the preceding annotations. @@ -601,9 +602,9 @@ POJO: - identify the constructor using the ``BsonCreator`` annotation For an example of setting the ``ANNOTATION_CONVENTION``, see the -:ref:`ANNOTATION_CONVENTION example `. +:ref:`ANNOTATION_CONVENTION tip `. For an example of the ``BsonCreator`` annotation, see the -:ref:`POJO with annotation code example `. +:ref:`sample POJO code `. .. _pojo-serialization-customization: From 243fec2b6034940e30c6f1890cd3b37a99b7b89b Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 31 Jan 2025 15:28:03 -0500 Subject: [PATCH 2/3] rerun tests --- source/fundamentals/data-formats/pojo-customization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fundamentals/data-formats/pojo-customization.txt b/source/fundamentals/data-formats/pojo-customization.txt index 364ad5f4b..204652bda 100644 --- a/source/fundamentals/data-formats/pojo-customization.txt +++ b/source/fundamentals/data-formats/pojo-customization.txt @@ -604,7 +604,7 @@ POJO: For an example of setting the ``ANNOTATION_CONVENTION``, see the :ref:`ANNOTATION_CONVENTION tip `. For an example of the ``BsonCreator`` annotation, see the -:ref:`sample POJO code `. +:ref:`sample POJO code `. .. _pojo-serialization-customization: From 0a9ff6ceff64e66a5c944b919e2e329ea36868d7 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 31 Jan 2025 15:37:11 -0500 Subject: [PATCH 3/3] fix link --- source/fundamentals/data-formats/pojo-customization.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/fundamentals/data-formats/pojo-customization.txt b/source/fundamentals/data-formats/pojo-customization.txt index 204652bda..08e6db440 100644 --- a/source/fundamentals/data-formats/pojo-customization.txt +++ b/source/fundamentals/data-formats/pojo-customization.txt @@ -312,8 +312,7 @@ package: | - `BsonDocument <{+api+}/apidocs/bson/org/bson/BsonDocument.html>`__ | - ``Map`` | - | See the :ref:`BsonExtraElements Annotation Example - ` on this page. + | See the :ref:`BsonExtraElements Annotation Example ` on this page. The following code snippet shows a sample POJO called ``Product`` that uses several of the preceding annotations.