Top Description Methods
org.hibernate.annotations

public @Interface ForeignKey

extends Annotation
Annotations
@Target:FIELD, METHOD, TYPE
@Retention:RUNTIME
@Deprecated
forRemoval:true
Imports
java.lang.annotation.Retention, .Target

Deprecated

for removal.

use the JPA 2.1 jakarta.persistence.ForeignKey annotation

Specifies a foreign key name.

Method Summary

Modifier and TypeMethod and Description
public String
inverseName()

Deprecated this member is currently ignored and has no effect
Used for the non-owning side of a ManyToMany association.
public String
name()

Name of the foreign key of a OneToMany, ManyToOne, or OneToOne association.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

inverseNameback to summary
public 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.

Annotations
@Deprecated
nameback to summary
public String name()

Name of the foreign key of a OneToMany, ManyToOne, or OneToOne association. May also be applied to the owning side a ManyToMany association.