Class ManyToManyBuilder

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

public class ManyToManyBuilder extends Object
Builder class for defining many-to-many relationships between DTOs (Data Transfer Objects) and their corresponding relationship tables in a database.

This class is part of the Litebridge ORM's fluent API for registering many-to-many mappings between DTOs and their associated join tables. It provides an entry point for specifying the details of the join table used in the many-to-many relationship.

Methods in this class return intermediate steps that allow further configuration of the relationship, such as specifying the join expressions and inverse join expressions.

This builder is intended to simplify many-to-many table relationship configuration as part of the table registration process within Litebridge ORM.

  • Constructor Details

    • ManyToManyBuilder

      public ManyToManyBuilder()
  • Method Details

    • joinTable

      public ManyToManyBuilderJoinColumnStep joinTable(String table)
      Specifies the name of the join table to be used in a many-to-many relationship. This method serves as the starting point for further configuration of the join table, including definition of join expressions and inverse join expressions.
      Parameters:
      table - The name of the join table representing the many-to-many relationship in the underlying database. Must not be null or empty.
      Returns:
      An instance of ManyToManyBuilderJoinColumnStep to allow further configuration of the join expressions for the specified join table.