Annotation Interface JoinColumn


@Retention(RUNTIME) @Target(FIELD) public @interface JoinColumn
Specifies a column for joining an entity association. Example usage:

 public class ExampleEntity {
     @JoinColumn(name = "column_name", foreignKey = @ForeignKey(name = "fk_name"))
     private String example;
 }
 
Since:
1.0
Author:
Blyzhnytsia Team
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the name of the column.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the foreign key constraint for the column.
  • Element Details

    • name

      String name
      Specifies the name of the column.
      Returns:
      the name of the column
    • foreignKey

      ForeignKey foreignKey
      Specifies the foreign key constraint for the column.
      Returns:
      the foreign key constraint for the column
      Default:
      @io.github.blyznytsiaorg.bibernate.annotation.ForeignKey(name="")