Package org.hibernate.annotations
Annotation Type ForeignKey
-
@Target({FIELD,METHOD,TYPE}) @Retention(RUNTIME) @Deprecated public @interface ForeignKey
Deprecated.Prefer the JPA 2.1 introducedForeignKey
instead.Define the foreign key name.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
inverseName
Deprecated.Used for the non-owning side of a ManyToMany relationship.
-
-
-
Element Detail
-
name
String name
Deprecated.Name of the foreign key. Used in OneToMany, ManyToOne, and OneToOne relationships. Used for the owning side in ManyToMany relationships
-
-
-
inverseName
String inverseName
Deprecated.Used for the non-owning side of a ManyToMany relationship. Ignored in other relationships- Default:
- ""
-
-