Package org.hibernate.annotations
Annotation Type ForeignKey
@Target({FIELD,METHOD,TYPE})@Retention(RUNTIME)@Deprecated(forRemoval=true)public @interfaceForeignKey
Deprecated, for removal: This API element is subject to removal in a future version.use the JPA 2.1ForeignKeyannotationSpecifies a foreign key name.
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringinverseNameDeprecated.this member is currently ignored and has no effect
Element Detail
name
String name
Deprecated, 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
@DeprecatedString inverseName
Deprecated.this member is currently ignored and has no effectUsed for the non-owning side of aManyToManyassociation. Ignored for other association cardinalities.- Default:
- ""