Package com.blazebit.persistence.view
Annotation Type MappingInverse
Defines the inverse mapping to use for persisting or updating elements.
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe path of the target type by which this attribute is mapped.The strategy to use for elements that were removed from this relation.
-
Element Details
-
mappedBy
String mappedByThe path of the target type by which this attribute is mapped. The default value is to reuse the value ofOneToOne.mappedBy()
orOneToMany.mappedBy()
if there is any.- Returns:
- The mapped by path
- Default:
- ""
-
removeStrategy
InverseRemoveStrategy removeStrategyThe strategy to use for elements that were removed from this relation. Note that inverse mappings automatically haveCascadeType.DELETE
activated. WhenUpdatableMapping.orphanRemoval()
is activated, only theInverseRemoveStrategy.REMOVE
strategy is a valid configuration.- Returns:
- The remove strategy
- Default:
- SET_NULL
-