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.
96
96
What is a discriminator?
97
97
~~~~~~~~~~~~~~~~~~~~~~~~
98
98
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).
102
103
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
105
106
which class the ``PojoCodecProvider`` should use to serialize/deserialize the
106
107
document.
107
108
109
+ For more information, see our :ref:`POJO Customization guide
110
+ <pojo-discriminators>`.
111
+
108
112
Can I control serialization of ``LocalDate``?
109
113
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110
114
You can’t perform that action at this time.
0 commit comments