- All Known Implementing Classes:
ColumnSpec,ManyToMany,OneToMany
The ColumnMapping interface serves as a common contract for modelling different
types of mappings between fields in a data transfer object (DTO) and database expressions.
It is a sealed interface, allowing only specific permitted implementations to be used.
Permitted implementations:
- ColumnSpec: Represents a direct mapping between a DTO field and a single
database column, with optional configuration for auto-increment and value generation.
- OneToMany: Represents a one-to-many relationship, where a DTO field maps to
a collection of related database rows.
- ManyToMany: Represents a many-to-many relationship, where a DTO field maps to
related entities through an intermediate join table.
This interface is part of the ORM framework, enabling flexible and type-safe mappings between DTO structures and underlying database schemas.