Annotation Interface AutoPopulated
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,FIELD})
@Documented
public @interface AutoPopulated
Meta annotation to identity annotations that are auto-populated by the Micronaut Data.
- Since:
- 1.0.0
- Author:
- graemerocher
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe annotation name.static final StringThe metadata key forskipIfPresent().static final String -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanControls whether auto-population should skip if a non-null value is already present.boolean
-
Field Details
-
NAME
The annotation name. -
UPDATABLE
- See Also:
-
SKIP_IF_PRESENT
-
-
Element Details
-
updatable
boolean updatable- Returns:
- Whether the property can be updated following an insert
- Default:
true
-
skipIfPresent
boolean skipIfPresentControls whether auto-population should skip if a non-null value is already present. Default is false to preserve the existing behavior of always generating a value.- Returns:
trueif auto-population should be skipped if a non-null value is present,falseotherwise- Since:
- 5.0
- Default:
false
-