Skip to content

Commit

Permalink
docs: include annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Feb 20, 2024
1 parent e87d983 commit bc79423
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/src/main/asciidoc/chapters/api/annotations.adoc
Expand Up @@ -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 <<inheritance_definition>>, 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 <<inheritance_definition>> 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.

0 comments on commit bc79423

Please sign in to comment.