Annotation Type MappingInheritanceSubtype


@Target({METHOD,PARAMETER}) @Retention(RUNTIME) public @interface MappingInheritanceSubtype
Defines a possible subtype that should be materialized when the selection predicate is satisfied.
Since:
1.2.0
Author:
Christian Beikov
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The entity view subtype of the annotated subview attribute.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The selection predicate which is used to test whether the entity view type denoted by value() should be used as target type for an entity.
  • Element Details

    • value

      Class<?> value
      The entity view subtype of the annotated subview attribute.
      Returns:
      The entity view subtype
    • mapping

      String mapping
      The selection predicate which is used to test whether the entity view type denoted by value() should be used as target type for an entity. The default is to use the predicate defined on the entity view type if it is defined.
      Returns:
      The selection predicate
      Default:
      ""