@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface Immutable
PropertyBean properties that are immutable.
An immutable property is one which can have any value when the PropertyBean
is used for a create operation. For an update operation, performed by calling
ManagedPortalObject.setProperties(B), the PropertyBean property value
must be equal to the existing property value on the ManagedPortalObject.
The Immutable annotation must be applied to the property getter method.
Immutable properties are enforced by the presence of an ValidateImmutable class level validator.
ValidateImmutable,
ReadOnly| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
propertyGroup
Assigns this annotation to a particular group of property annotations.
|
public abstract java.lang.Class<?> propertyGroup
ValidateImmutable class annotation, that is responsible
for triggering validation of the properties in this group.