javax.persistence
Annotation Type JoinColumn


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

The @JoinColumn annotation.


Optional Element Summary
 java.lang.String columnDefinition
           
 boolean insertable
           
 java.lang.String name
           
 boolean nullable
           
 java.lang.String referencedColumnName
           
 java.lang.String table
           
 boolean unique
           
 boolean updatable
           
 

name

public abstract java.lang.String name
Default:
""

referencedColumnName

public abstract java.lang.String referencedColumnName
Default:
""

unique

public abstract boolean unique
Default:
false

nullable

public abstract boolean nullable
Default:
true

insertable

public abstract boolean insertable
Default:
true

updatable

public abstract boolean updatable
Default:
true

columnDefinition

public abstract java.lang.String columnDefinition
Default:
""

table

public abstract java.lang.String table
Default:
""