Package org.hibernate.annotations
Annotation Type Mutability
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,TYPE}) @Inherited @Retention(RUNTIME) public @interface Mutability
Used to specify aMutabilityPlanfor a basic value mapping.-
When applied to a Map-valued attribute, describes the
Mapvalue. UseMapKeyMutabilityto describe the key instead. -
When applied to a
Listof array-valued attribute, describes the element. -
When mapping an id-bag, describes the collection element.
Use
CollectionIdMutabilityto describe theCollectionId. - For other collection mappings, describes the elements.
-
For discriminated association mappings (
AnyandManyToAny), describes the discriminator value.
ManagedBean. See for a high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
Immutable- "API Note:"
- Valid on
ElementType.TYPEin very limited cases. At the moment it is only supported on implementations ofAttributeConverter.
-
When applied to a Map-valued attribute, describes the
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends MutabilityPlan<?>>valueA class implementingMutabilityPlan.
-
-
-
Element Detail
-
value
Class<? extends MutabilityPlan<?>> value
A class implementingMutabilityPlan.
-
-