Interface ProjectionMetadata.Attribute
- Enclosing interface:
ProjectionMetadata<D>
public static interface ProjectionMetadata.Attribute
Attribute binding between DTO constructor arguments and entity paths.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the attribute represents a collection association.BiConsumer<Object, List<?>> mutator()Mutator used to assign collection values on the DTO.nested()Metadata for nested DTO projections, ornullfor simple fields.path()Entity attribute path relative to the current entity or join.
-
Method Details
-
path
String path()Entity attribute path relative to the current entity or join. -
nested
ProjectionMetadata<?> nested()Metadata for nested DTO projections, ornullfor simple fields. -
collection
boolean collection()Whether the attribute represents a collection association. -
mutator
BiConsumer<Object,List<?>> mutator()Mutator used to assign collection values on the DTO. Implementations are expected to be generated at compile time so that collection properties can be populated without reflection.- Returns:
- a mutator accepting the DTO instance and the values to set
-