Rejected
Details
Assignee
UnassignedUnassignedReporter
Vladimír KurucVladimír KurucWorked in
Components
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Vladimír Kuruc
Vladimír KurucWorked in
Components
Affects versions
Priority
Created March 17, 2025 at 9:24 AM
Updated March 17, 2025 at 10:16 AM
Resolved March 17, 2025 at 10:15 AM
The return type of the SUM function over an Integer type column in the Criteria API has changed from
Long
toInteger
. In the old version, with an explicitly defined return type:CriteriaQuery<Integer> criteria = builder.createQuery( Integer.class );
the result was of type
Integer
.In the case where I defined the query as:
CriteriaQuery<Tuple> criteria = builder.createTupleQuery();
the value in the resulting
Tuple
was of typeLong
.After the upgrade, the return type is
Integer
in both cases.