Annotation Interface ManyToMany


@Retention(RUNTIME) @Target(FIELD) public @interface ManyToMany
Annotation used to specify a many-to-many relationship between entities.
Since:
1.0
Author:
Blyzhnytsia Team
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) Specifies the cascade operations to be applied to the relationship.
    (Optional) The name of the field on the target entity that owns the relationship.
  • Element Details

    • mappedBy

      String mappedBy
      (Optional) The name of the field on the target entity that owns the relationship.
      Returns:
      The name of the field that owns the relationship.
      Default:
      ""
    • cascade

      CascadeType[] cascade
      (Optional) Specifies the cascade operations to be applied to the relationship.
      Returns:
      The cascade operations.
      Default:
      {}