Module litebridge.orm
Class ManyToManyBuilderJoinColumnStep
java.lang.Object
org.litebridgedb.orm.api.register.ManyToManyBuilderJoinColumnStep
Represents a configuration step in the fluent API for defining many-to-many relationships
between DTOs (Data Transfer Objects) and their corresponding join tables in a database.
This class is specifically used to specify the join column for the join table in a many-to-many relationship. It serves as an intermediate step in the configuration, allowing the user to proceed to defining the inverse join column after setting the join column.
Instances of this class are created by the joinTable method of ManyToManyBuilder
and provide a method for specifying the join column in the relationship.
-
Method Summary
Modifier and TypeMethodDescriptionjoinColumn(String column) Defines the join column for a many-to-many relationship's join table.
-
Method Details
-
joinColumn
Defines the join column for a many-to-many relationship's join table. This method is used to specify the column in the join table that corresponds to the relationship between the two DTOs (Data Transfer Objects) in a many-to-many mapping.- Parameters:
column- The name of the join column in the join table. This column represents the foreign key for the primary DTO in the many-to-many relationship. Must not be null or empty.- Returns:
- An instance of
ManyToManyBuilderInverseJoinColumnStepto allow further configuration of the inverse join column in the many-to-many relationship.
-