Package org.hibernate.annotations
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.
Specifies a foreign key name.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.this member is currently ignored and has no effect
-
Element Details
-
name
String nameDeprecated, for removal: This API element is subject to removal in a future version.Name of the foreign key of aOneToMany,ManyToOne, orOneToOneassociation. May also be applied to the owning side aManyToManyassociation.
-
-
-
inverseName
Deprecated.this member is currently ignored and has no effectUsed for the non-owning side of aManyToManyassociation. Ignored for other association cardinalities.- Default:
- ""
-
ForeignKeyannotation