Package com.blazebit.persistence.view
Annotation Type MappingInheritance
@Target({METHOD,PARAMETER}) @Retention(RUNTIME) public @interface MappingInheritance
Defines the subtype mappings for a subview attribute.
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Required Element Summary
Required Elements Modifier and Type Required Element Description MappingInheritanceSubtype[]
value
The subtype mappings of this annotated attribute that should be considered for inheritance. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
onlySubtypes
Specifies that the base type is not considered in the inheritance subtype selection, but only it's subtypes.
-
Element Details
-
value
MappingInheritanceSubtype[] valueThe subtype mappings of this annotated attribute that should be considered for inheritance.- Returns:
- The subtype mappings
-
-
-
onlySubtypes
boolean onlySubtypesSpecifies that the base type is not considered in the inheritance subtype selection, but only it's subtypes.- Returns:
- Whether the base type should be considered for inheritance subtype selection
- Default:
- false
-