Top Description Methods
org.hibernate.annotations

public @Interface ForeignKey

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

Deprecated

Prefer the JPA 2.1 introduced javax.persistence.ForeignKey instead.

Define the foreign key name.

Method Summary

Modifier and TypeMethod and Description
public String
inverseName()

Used for the non-owning side of a ManyToMany relationship.

public String
name()

Name of the foreign key.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

inverseNameback to summary
public String inverseName()

Used for the non-owning side of a ManyToMany relationship. Ignored in other relationships

nameback to summary
public String name()

Name of the foreign key. Used in OneToMany, ManyToOne, and OneToOne relationships. Used for the owning side in ManyToMany relationships