Specifies a many-to-many relationship between two entities.
This annotation is applied to fields or properties within entity classes to configure the many-to-many mapping.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSpecifies the name of the column in the join table that references the primary key of the associated entity.Specifies the name of the column in the join table that references the primary key of the current entity.Specifies the name of the intermediate join table used to represent a many-to-many relationship between two entities in the context of Object-Relational Mapping (ORM).
-
Element Details
-
joinTable
String joinTableSpecifies the name of the intermediate join table used to represent a many-to-many relationship between two entities in the context of Object-Relational Mapping (ORM). The join table is used to store the associations between records of the current entity and the associated entity.- Returns:
- The name of the join table used in the many-to-many relationship.
-
joinColumn
String joinColumnSpecifies the name of the column in the join table that references the primary key of the current entity. This column is used to establish the link between the current entity and the associated entity in the many-to-many relationship.- Returns:
- The name of the join column used in the many-to-many relationship.
-
inverseJoinColumn
String inverseJoinColumnSpecifies the name of the column in the join table that references the primary key of the associated entity. This column is used to establish the link between the associated entity and the current entity in the many-to-many relationship.- Returns:
- The name of the inverse join column used in the many-to-many relationship.
-