@@ -133,8 +133,7 @@ requirements:
133
133
134
134
135
135
1. Configure the :java-docs:`PojoCodecProvider <apidocs/bson/org/bson/codecs/pojo/PojoCodecProvider.html>`,
136
- a codec provider that provides the Codecs that define how to encode the data
137
- and on which classes to apply the Codecs. In this example, we use the
136
+ In this example, we use the
138
137
:java-docs:`automatic(true) <apidocs/bson/org/bson/codecs/pojo/PojoCodecProvider.Builder.html#automatic(boolean)>`
139
138
setting of the :java-docs:`PojoCodecProvider.Builder <apidocs/bson/org/bson/codecs/pojo/PojoCodecProvider.Builder.html>`
140
139
to apply the Codecs to any class and its properties.
@@ -228,3 +227,17 @@ When you run this code, your output should resemble the following:
228
227
By default, the ``PojoCodecProvider`` omits fields in your POJO that are
229
228
set to ``null``. For more information on how to specify this behavior, see
230
229
our guide on :doc:`POJO Customization </fundamentals/data-formats/pojo-customization>`.
230
+
231
+ Summary
232
+ -------
233
+
234
+ In this guide, we explained how to convert data between BSON and POJO fields
235
+ by performing the following:
236
+
237
+ - Instantiate a ``PojoCodecProvider`` which contains Codecs which define how to
238
+ encode/decode data between BSON and the POJO fields.
239
+ - Specify the **automatic** conversion behavior for the ``PojoCodecProvider``
240
+ to apply the ``Codecs`` to any class and its properties.
241
+ - Add the ``PojoCodecProvider`` to a ``CodecRegistry``, and specify the
242
+ registry on an instance of a ``MongoClient``, ``MongoDatabase``, or
243
+ ``MongoCollection``.
0 commit comments