Annotation Interface Target


@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface Target
Used in mapping dynamic models to specify the java-type of an attribute, mainly for basic, id, embedded and embedded-id attributes. Can also be useful for any and many-to-any attributes to specify a base type.

Other attribute classifications have spec-defined ways to specify the target

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The attribute's Java type
  • Element Details

    • value

      String value
      The attribute's Java type