@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 |
Class<?> |
value |
The entity view subtype of the annotated subview attribute.
|
-
Optional Element Summary
Optional Elements
Modifier and Type |
Optional Element |
Description |
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.
|
-
Element Details
-
The entity view subtype of the annotated subview attribute.
- Returns:
- The entity view subtype
-
-
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:
- ""