org.hibernate.annotations
Annotation Type ForeignKey


@Target(value={FIELD,METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface ForeignKey


Required Element Summary
 java.lang.String name
          Name of the foreign key.
 
Optional Element Summary
 java.lang.String inverseName
          Used for the non-owning side of a ManyToMany relationship.
 

Element Detail

name

public abstract java.lang.String name
Name of the foreign key. Used in OneToMany, ManyToOne, and OneToOne relationships. Used for the owning side in ManyToMany relationships

inverseName

public abstract java.lang.String inverseName
Used for the non-owning side of a ManyToMany relationship. Ignored in other relationships

Default:
""