Skip to content

Commit 7c10b15

Browse files
DOCSP-17133 update FAQ (#115)
* updated pojo first question
1 parent 55cfdbb commit 7c10b15

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

source/faq.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,7 @@ POJOs
4747
Do I have to specify an ID field value myself?
4848
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4949

50-
Imagine you have the following entity:
51-
52-
.. code-block:: java
53-
54-
public class Entity {
55-
public final ObjectId id;
56-
public String value;
57-
58-
public Entity(){ }
59-
}
50+
No, the ``PojoCodecProvider`` automatically generates an ObjectId.
6051

6152
Can the ID field be a compound key?
6253
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -77,7 +68,7 @@ document (in case you embed sub-documents).
7768

7869
For example, if you have an ``Event`` class, that you extend in Java (e.g.
7970
``MachineEvent`` or ``NetworkEvent``), using the discriminator identifies
80-
which class the ``PojoCodec`` should use to serialize/deserialize the
71+
which class the ``PojoCodecProvider`` should use to serialize/deserialize the
8172
document.
8273

8374
Can I control serialization of ``LocalDate``?

0 commit comments

Comments
 (0)