Annotation Type Target

  • @Deprecated(since="6.2")
    public @interface Target
    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
      The target entity type.
    • Element Detail

      • value

        Class<?> value
        The target entity type.