-
@Target(TYPE) @Retention(RUNTIME) public @interface InheritanceSpecifies the inheritance mapping strategy for the entity class hierarchy which descends from the annotated entity class.This annotation must be applied to the entity class that is the root of the entity class hierarchy. If the
Inheritanceannotation is not specified, or if no inheritance type is specified for an entity class hierarchy, theSINGLE_TABLEmapping strategy is used.Example: {@snippet :
- Since:
- 1.0
- See Also:
InheritanceType
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description InheritanceTypestrategyThe inheritance mapping strategy for the entity inheritance hierarchy.
-
-
-
Element Detail
-
strategy
InheritanceType strategy
The inheritance mapping strategy for the entity inheritance hierarchy.- Default:
- jakarta.persistence.InheritanceType.SINGLE_TABLE
-
-