Annotation Interface ProjectedFieldName


@Retention(RUNTIME) @Target({PARAMETER,FIELD}) public @interface ProjectedFieldName
Define a field's path or HQL expression for the SELECT statement when using a projection DTO.

It supports:

  • Simple field names
  • Dot notation for fields in referenced entities (e.g., "owner.name")
  • Any valid HQL expression, including aggregate functions (e.g., "SUM(amount)", "COUNT(id)")

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details