Annotation Interface Inheritance


@Target(TYPE) @Retention(RUNTIME) public @interface Inheritance
Specifies the inheritance strategy to be used for an entity class hierarchy.

It is specified on the entity class that is the root of the entity class hierarchy. If the Inheritance annotation is not specified or if no inheritance type is specified for an entity class hierarchy, the TWO_STEP loading strategy is used.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The strategy to be used for the entity inheritance hierarchy.
  • Element Details

    • strategy

      InheritanceType strategy
      The strategy to be used for the entity inheritance hierarchy.
      Returns:
      Inheritance strategy
      Default:
      TWO_STEP