Annotation Interface Generated


@Documented @Retention(CLASS) @Target({TYPE,PACKAGE,MODULE}) public @interface Generated
Indicates that the source file containing the annotated entity has been generated automatically.
Since:
1.2
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the generator.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns a list of parameters that have influenced the generation process.
    Returns a timestamp of the generation process.
    Returns a desciption of the version of the generator.
  • Element Details

    • generator

      String generator
      Returns the name of the generator. If the generator is implemented in Java, then this should be a valid package name.
    • version

      String version
      Returns a desciption of the version of the generator. Depending of the nature of the generator software, this can be a version number, a timestamp in ISO 8601 format, or some other data. The empty string indicates that no version information is available.
      Default:
      ""
    • timestamp

      String timestamp
      Returns a timestamp of the generation process. This should be in ISO 8601 format, with precision appropriate to the context. The empty string indicates that no timestamp information is available.
      Default:
      ""
    • parameters

      String[] parameters
      Returns a list of parameters that have influenced the generation process.
      Default:
      {}