Class FieldColumnSpecBuilderFieldStep

java.lang.Object
org.litebridge.orm.api.register.FieldColumnSpecBuilderFieldStep

public final class FieldColumnSpecBuilderFieldStep extends Object
A builder step for configuring the mapping of a field in a data model to a database column or relationship. This class is part of a fluent API that facilitates the specification of field-to-column mappings, one-to-many relationships, and many-to-many relationships in a structured and readable way.

Responsibilities:

  • Provide a mechanism to transition to the column mapping step.
  • Enable the specification of one-to-many relationships.
  • Enable the specification of many-to-many relationships.

Key Operations:

  • toColumn(String column): Advances the builder to the column mapping step for the current field.
  • oneToMany(Function<OneToManyBuilder, OneToMany> c): Defines a one-to-many relationship for the field using a functional builder.
  • manyToMany(Function<ManyToManyBuilder, ManyToMany> c): Defines a many-to-many relationship for the field using a functional builder.

This class operates in conjunction with other builder steps such as FieldColumnSpecBuilderColumnStep, OneToManyBuilder, and ManyToManyBuilder to fully define the mapping details for a given field.

Instances of this class are immutable and represent transitional steps in the builder process.