Annotation Type ForeignKey


  • @Target({TYPE,METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface ForeignKey
    Foreign key definition.
    Since:
    0.4.0
    Author:
    Abe White
    • Element Detail

      • name

        java.lang.String name
        Default:
        ""
      • enabled

        boolean enabled
        Default:
        true
      • deferred

        boolean deferred
        Default:
        false
      • deleteAction

        ForeignKeyAction deleteAction
        Default:
        org.apache.openjpa.persistence.jdbc.ForeignKeyAction.RESTRICT
      • updateAction

        ForeignKeyAction updateAction
        Default:
        org.apache.openjpa.persistence.jdbc.ForeignKeyAction.RESTRICT
      • columnNames

        java.lang.String[] columnNames
        Default:
        {}
      • specified

        boolean specified
        Default:
        true
      • implicit

        boolean implicit
        Default:
        false