Annotation Type Aggregation


  • @Retention(RUNTIME)
    @Target({FIELD,ANNOTATION_TYPE})
    public @interface Aggregation
    Specify a property to be an aggregation formula.

    The aggregation formula should be a sum, count, avg, min or max. By default aggregation properties are treated as transient and not included in a query. To populate the aggregation property it must be explicitly included in the select().

    Example:

    {@code
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      Aggregation formula using sum, count, avg, min, max.
    • Element Detail

      • value

        String value
        Aggregation formula using sum, count, avg, min, max.