Annotation Type JoinColumn


@Retention(CLASS) @Target(FIELD) public @interface JoinColumn
Foreign key column on the owning table.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names the foreign key column on the owning table.
    boolean
    Allows a null foreign key, subject to the association optional setting.
  • Element Details

    • name

      String name
      Names the foreign key column on the owning table.
      Returns:
      column name; empty derives it from the relationship name
      Default:
      ""
    • nullable

      boolean nullable
      Allows a null foreign key, subject to the association optional setting.
      Returns:
      true by default
      Default:
      true