Annotation Interface ForeignKey


@Retention(RUNTIME) @Target(FIELD) public @interface ForeignKey
Indicates that the annotated field represents a foreign key constraint in a database table.
Since:
1.0
Author:
Blyzhnytsia Team
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the name of the foreign key constraint.
  • Element Details

    • name

      String name
      Specifies the name of the foreign key constraint.
      Returns:
      the name of the foreign key constraint