org.apache.openjpa.persistence.jdbc
Annotation Type ForeignKey


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

Foreign key definition.

Since:
0.4.0
Author:
Abe White

Optional Element Summary
 String[] columnNames
           
 boolean deferred
           
 ForeignKeyAction deleteAction
           
 boolean enabled
           
 boolean implicit
           
 String name
           
 boolean specified
           
 ForeignKeyAction updateAction
           
 

name

public abstract String name
Default:
""

enabled

public abstract boolean enabled
Default:
true

deferred

public abstract boolean deferred
Default:
false

deleteAction

public abstract ForeignKeyAction deleteAction
Default:
org.apache.openjpa.persistence.jdbc.ForeignKeyAction.RESTRICT

updateAction

public abstract ForeignKeyAction updateAction
Default:
org.apache.openjpa.persistence.jdbc.ForeignKeyAction.RESTRICT

columnNames

public abstract String[] columnNames
Default:
{}

specified

public abstract boolean specified
Default:
true

implicit

public abstract boolean implicit
Default:
false


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.