org.hibernate.annotations
Annotation Type ForeignKey
- @Target(value={FIELD,METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface ForeignKey
| Required Element Summary | 
|  String | nameName of the foreign key.
 | 
 
| Optional Element Summary | 
|  String | inverseNameUsed for the non-owning side of a ManyToMany relationship.
 | 
 
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:
- ""
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.