Class ProjectionFieldResolver
java.lang.Object
nl.datasteel.crudcraft.projection.mapping.ProjectionFieldResolver
Resolves mapping information for DTO fields at runtime. Each constructor
parameter is mapped to an entity path, either by naming convention or by
ProjectionField
annotation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Describes a single field mapping for a DTO constructor parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolve field mappings for the given DTO type.
-
Constructor Details
-
ProjectionFieldResolver
public ProjectionFieldResolver()
-
-
Method Details
-
resolve
Resolve field mappings for the given DTO type. The order of mappings corresponds to the constructor parameter order of the DTO.- Type Parameters:
D
- DTO type- Parameters:
dtoType
- DTO type to analyse- Returns:
- list of field mappings in constructor order
-