Annotation Interface Target


@Deprecated(since="6.2", forRemoval=true) @Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface Target
Deprecated, for removal: This API element is subject to removal in a future version.
use annotation members of JPA association mapping annotations, for example, OneToMany.targetEntity()
Explicitly specifies the target entity type in an association, avoiding reflection and generics resolution. This annotation is almost never useful.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    The target entity type.
  • Element Details

    • value

      Class<?> value
      Deprecated, for removal: This API element is subject to removal in a future version.
      The target entity type.