Annotation Type JoinColumn


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    @Repeatable(JoinColumns.class)
    public @interface JoinColumn
    Subset of the JPA join column annotation.
    Since:
    2.4.0
    Author:
    Denis Stepanov
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String columnDefinition
      Used to define the mapping.
      java.lang.String name
      The name of the foreign column.
      java.lang.String referencedColumnName
      The name of the column referenced by this foreign column.
    • Element Detail

      • name

        java.lang.String name
        The name of the foreign column.
        Returns:
        The name of the foreign column
        Default:
        ""
      • referencedColumnName

        java.lang.String referencedColumnName
        The name of the column referenced by this foreign column.
        Returns:
        The referenced column name
        Default:
        ""
      • columnDefinition

        java.lang.String columnDefinition
        Used to define the mapping. For example in the case of SQL this would be the column definition. Example: BLOB NOT NULL.
        Returns:
        A string-based definition of the property type.
        Default:
        ""