Package org.hibernate.annotations
Annotation Type Mutability
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,TYPE}) @Inherited @Retention(RUNTIME) public @interface Mutability
Used to specify the MutabilityPlan for a basic value mapping.-
When applied to a Map-valued attribute, describes the Map value. Use
MapKeyMutability
to describe the key instead - When applied to a List of array-valued attribute, describes the element.
-
When mapping an id-bag, describes the collection element. Use
CollectionIdMutability
to describe the collection-id - For other collection mappings, describes the elements
- For discriminated association mappings (`@Any` and `@ManyToAny`), describes the discriminator value.
ManagedBean
See for high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
Immutable
- "API Note:"
- Valid on
ElementType.TYPE
in very limited cases - at the moment it is only supported on an AttributeConverter implementation
-
When applied to a Map-valued attribute, describes the Map value. Use
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends MutabilityPlan<?>>
value
The MutabilityPlan implementation
-
-
-
Element Detail
-
value
Class<? extends MutabilityPlan<?>> value
The MutabilityPlan implementation
-
-