Annotation Interface ForeignKey


@Target({FIELD,METHOD,TYPE}) @Retention(RUNTIME) @Deprecated(forRemoval=true) public @interface ForeignKey
Deprecated, for removal: This API element is subject to removal in a future version.
use the JPA 2.1 ForeignKey annotation
Specifies a foreign key name.
  • 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.
    Name of the foreign key of a OneToMany, ManyToOne, or OneToOne association.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    this member is currently ignored and has no effect
  • Element Details

    • name

      String name
      Deprecated, for removal: This API element is subject to removal in a future version.
      Name of the foreign key of a OneToMany, ManyToOne, or OneToOne association. May also be applied to the owning side a ManyToMany association.
    • inverseName

      @Deprecated String inverseName
      Deprecated.
      this member is currently ignored and has no effect
      Used for the non-owning side of a ManyToMany association. Ignored for other association cardinalities.
      Default:
      ""