File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 4747Do 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
6152Can the ID field be a compound key?
6253~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -77,7 +68,7 @@ document (in case you embed sub-documents).
7768
7869For 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
8172document.
8273
8374Can I control serialization of ``LocalDate``?
You can’t perform that action at this time.
0 commit comments