Annotation Type JoinTable


@Retention(CLASS) @Target(FIELD) public @interface JoinTable
Join table and key column names for an owning to-many association.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Names the table storing association membership.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names the join-table key column referring to the target.
    Names the join-table key column referring to the owner.
  • Element Details

    • name

      String name
      Names the table storing association membership.
      Returns:
      join table name
    • joinColumn

      String joinColumn
      Names the join-table key column referring to the owner.
      Returns:
      column name; owner_id by default
      Default:
      "owner_id"
    • inverseJoinColumn

      String inverseJoinColumn
      Names the join-table key column referring to the target.
      Returns:
      column name; target_id by default
      Default:
      "target_id"