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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The annotation name.
    static final String
    The metadata key for skipIfPresent().
    static final String
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Controls whether auto-population should skip if a non-null value is already present.
    boolean
     
  • Field Details

  • Element Details

    • updatable

      boolean updatable
      Returns:
      Whether the property can be updated following an insert
      Default:
      true
    • skipIfPresent

      boolean skipIfPresent
      Controls 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:
      true if auto-population should be skipped if a non-null value is present, false otherwise
      Since:
      5.0
      Default:
      false