File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,19 @@ Yes, by using a discriminator.
9696What is a discriminator?
9797~~~~~~~~~~~~~~~~~~~~~~~~
9898
99- A discriminator is for cases where you want to use inheritance, and
100- store multiple types of documents within the same collection or parent
101- document (in case you embed sub-documents).
99+ A discriminator is a property that identifies a specific document
100+ schema. You can use it for inheritance and storing multiple types of
101+ documents within the same collection or parent document (if you embed
102+ sub-documents).
102103
103- For example, if you have an ``Event`` class, that you extend in Java (e.g.
104- ``MachineEvent`` or ``NetworkEvent``), using the discriminator identifies
104+ For example, if you have an ``Event`` class that you extend in Java (e.g.
105+ ``MachineEvent`` or ``NetworkEvent``), using a discriminator identifies
105106which class the ``PojoCodecProvider`` should use to serialize/deserialize the
106107document.
107108
109+ For more information, see our :ref:`POJO Customization guide
110+ <pojo-discriminators>`.
111+
108112Can I control serialization of ``LocalDate``?
109113~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110114
You can’t perform that action at this time.
0 commit comments