Skip to content

Commit 78f1cb6

Browse files
DOCSP-17445 updated FAQ (#132)
* updated Discriminator FAQ
1 parent c05b5e1 commit 78f1cb6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

source/faq.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,19 @@ Yes, by using a discriminator.
9696
What 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
105106
which class the ``PojoCodecProvider`` should use to serialize/deserialize the
106107
document.
107108

109+
For more information, see our :ref:`POJO Customization guide
110+
<pojo-discriminators>`.
111+
108112
Can I control serialization of ``LocalDate``?
109113
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
110114

0 commit comments

Comments
 (0)