Annotation Type ForeignKey


  • @Target({FIELD,METHOD,TYPE})
    @Retention(RUNTIME)
    @Deprecated
    public @interface ForeignKey
    Deprecated.
    Prefer the JPA 2.1 introduced ForeignKey instead.
    Define the foreign key name.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String name
      Deprecated.
      Name of the foreign key.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String inverseName
      Deprecated.
      Used for the non-owning side of a ManyToMany relationship.
    • Element Detail

      • name

        java.lang.String name
        Deprecated.
        Name of the foreign key. Used in OneToMany, ManyToOne, and OneToOne relationships. Used for the owning side in ManyToMany relationships
      • inverseName

        java.lang.String inverseName
        Deprecated.
        Used for the non-owning side of a ManyToMany relationship. Ignored in other relationships
        Default:
        ""