You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/faq.txt
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Why are there two types of ``MongoClient`` in the Java driver?
18
18
19
19
There are two types of ``MongoClient`` because we wanted a cleaner API
20
20
for new users that didn't have the confusion of including multiple CRUD
21
-
API's. We wanted to ensure that the new CRUD API was available in a Java
21
+
APIs. We wanted to ensure that the new CRUD API was available in a Java
22
22
package structure that would work well with Java module support
23
23
introduced in Java 9.
24
24
@@ -31,7 +31,7 @@ New applications should generally use the
31
31
- Configuration with ``MongoClientSettings`` and ``ConnectionString``. You can create instances of this interface via factory methods defined in the ``com.mongodb.client.MongoClients`` class.
32
32
- CRUD API using ``MongoDatabase``, and from there, ``MongoCollection``
33
33
34
-
You should use ``com.mongodb.MongoClient`` class if you require support for the legacy API, which supports:
34
+
You should use the ``com.mongodb.MongoClient`` class if you require support for the legacy API, which supports:
35
35
36
36
- Configuration with ``MongoClientOptions`` and ``MongoClientURI``
37
37
- CRUD API using ``DB``, and from there, ``DBCollection``. You can access this API via the ``getDB()`` method.
@@ -77,7 +77,7 @@ document (in case you embed sub-documents).
77
77
78
78
For example, if you have an ``Event`` class, that you extend in Java (e.g.
79
79
``MachineEvent`` or ``NetworkEvent``), using the discriminator identifies
80
-
which class the PojoCodec should use to serialize/deserialize the
80
+
which class the ``PojoCodec`` should use to serialize/deserialize the
81
81
document.
82
82
83
83
Can I control serialization of ``LocalDate``?
@@ -105,12 +105,12 @@ and before the ``PojoCodecProvider``:
105
105
Can I make POJOs read/write directly to the field and not use the getters/setters at all?
0 commit comments