Class SumReturnTypeResolver

  • All Implemented Interfaces:
    FunctionReturnTypeResolver

    public class SumReturnTypeResolver
    extends Object
    implements FunctionReturnTypeResolver
    Resolve according to JPA spec 4.8.5

    SUM returns:

    • Long when applied to state fields of integral types (other than BigInteger);
    • Double when applied to state fields of floating point types;
    • BigInteger when applied to state fields of type BigInteger;
    • and BigDecimal when applied to state fields of type BigDecimal.
    • Constructor Detail

      • SumReturnTypeResolver

        public SumReturnTypeResolver​(TypeConfiguration typeConfiguration)