Skip to content

Commit

Permalink
docs: create the sampel to the annotations
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 19, 2024
1 parent 921c4e4 commit fd2c1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/chapters/api/annotations.adoc
Expand Up @@ -468,7 +468,7 @@ Here's a JSON sample demonstrating the usage of `Animal` in a subclass `Dog`:

In this JSON representation, the attributes `race` and `age` from the `Animal` superclass are inherited by the `Dog` entity, showcasing the application of mapped superclass mappings to its subclasses.

==== @Inheritance
==== @Inheritance [[inheritance_definition]]

The `@Inheritance` annotation in Jakarta NoSQL enables the use of inheritance strategies within the data model, allowing for the creation of class hierarchies where subclasses inherit attributes and behaviors from their superclass. By applying `@Inheritance` to the superclass, developers can define the inheritance strategy to be used for mapping the class hierarchy to the underlying NoSQL database.

Expand Down

0 comments on commit fd2c1d6

Please sign in to comment.