Top Methods
org.hibernate.annotations

public @Interface ForeignKey

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

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