Annotation Type Target


  • @Deprecated(since="6.2")
    @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface Target
    Deprecated.
    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
      Class<?> value
      Deprecated.
      The target entity type.
    • Element Detail

      • value

        Class<?> value
        Deprecated.
        The target entity type.