ForeignKey (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.annotations
Annotation Type ForeignKey

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

Required Element Summary
`String` | `name` Name of the foreign key.

Optional Element Summary
`String` | `inverseName` Used for the non-owning side of a ManyToMany relationship.

Element Detail

### name

    public abstract 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 String inverseName

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

  Default:
    ""

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.