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