From bc7942336b6f02fa8ab79b0b3bcd2cf93a71a8a3 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Tue, 20 Feb 2024 06:09:45 +0000 Subject: [PATCH] docs: include annotation Signed-off-by: Otavio Santana --- spec/src/main/asciidoc/chapters/api/annotations.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/src/main/asciidoc/chapters/api/annotations.adoc b/spec/src/main/asciidoc/chapters/api/annotations.adoc index 2a7a5f051..919433e4b 100644 --- a/spec/src/main/asciidoc/chapters/api/annotations.adoc +++ b/spec/src/main/asciidoc/chapters/api/annotations.adoc @@ -616,3 +616,7 @@ This JSON structure represents three different types of notifications: SMS, Emai } ] ---- + +In case of querying an entity using the `@Inheritance` annotation as defined by <>, the Jakarta NoSQL provider must automatically include the condition where the value from `@DiscriminatorColumn` equals the value of `@DiscriminatorValue`. + +For example, given the sample code from <> and executing the query for `SmsNotification`, the generated query should include a condition such as `type = 'SMS'` or its equivalent in the respective NoSQL database. \ No newline at end of file