Class ManyToManyBuilderJoinColumnStep

java.lang.Object
org.litebridgedb.orm.api.register.ManyToManyBuilderJoinColumnStep

public class ManyToManyBuilderJoinColumnStep extends Object
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 Details

    • joinColumn

      public ManyToManyBuilderInverseJoinColumnStep joinColumn(String column)
      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 ManyToManyBuilderInverseJoinColumnStep to allow further configuration of the inverse join column in the many-to-many relationship.