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 Type
    Method
    Description
    boolean
    Whether the attribute represents a collection association.
    Mutator used to assign collection values on the DTO.
    Metadata for nested DTO projections, or null for simple fields.
    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, or null for 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