Package org.hibernate.annotations
Annotation Type Mutability
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,TYPE}) @Inherited @Retention(RUNTIME) public @interface Mutability
Used to specify aMutabilityPlan
for a basic value mapping.-
When applied to a Map-valued attribute, describes the
Map
value. UseMapKeyMutability
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 theCollectionId
. - For other collection mappings, describes the elements.
-
For discriminated association mappings (
Any
andManyToAny
), describes the discriminator value.
ManagedBean
. See for a high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
Immutable
-
When applied to a Map-valued attribute, describes the
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends MutabilityPlan<?>>
value
A class implementingMutabilityPlan
.
-
-
-
Element Detail
-
value
Class<? extends MutabilityPlan<?>> value
A class implementingMutabilityPlan
.
-
-