This annotation specifies the inheritance mapping strategy used in the inheritance hierarchy of an entity.
@Inheritance is specified in the parent entity class of inheritance hierarchy.
The following are two types of inheritance mapping strategy available with Cosminexus JPA provider:
For details on the inheritance mapping strategy, see 6.13.2 Inheritance mapping strategy in the uCosminexus Application Server Common Container Functionality Guide.
The applicable target is class.
The following table lists the elements of @Inheritance:
Element name | Optional/Required | Element description |
---|---|---|
strategy | Optional | This element specifies the type of inheritance mapping strategy. |
The details of attributes that are supported with Cosminexus JPA provider are as follows: