Wrong order of native query result return mappings

Description

JPA 2.1, section 3.10.16.3 "Combinations of Result Types": .. the query execution will result in an Object[] instance whose elements are as follows, in order: any entity results...; any instances of classes corresponding to constructor results ...; and any instances corresponding to column results...

Given this mapping:

Hibernate should return the same order in the Object[], however, it returns <entity-result/>, <column-result/>, <constructor-result/>.

Activity

Show:

Christian Beikov January 20, 2025 at 4:18 PM

This was fixed in ORM 6+

Steve Ebersole October 28, 2015 at 3:26 AM

As part of verifying that this issue affects 5.0, please just set the "Affects version". Leave the "verify-affects-5.0" label and leave the issue in "Awaiting Response" status; these are critical for us to be able to track these verifications and triage them. Thanks.

Steve Ebersole October 27, 2015 at 7:16 PM

This bug report does not indicate that the reported issue affects version 5.x. Versions prior to 5.x are no longer maintained. It would be a great help to the Hibernate team and community for someone to verify that the reported issue still affects version 5.x. If so, please add the 5.x version that you verified with to the list of affected-versions and attach the (preferably SSCCE) test case you used to do the verification to the report; from there the issues will be looked at during our triage meetings.

For details, see http://in.relation.to/2015/10/27/great-jira-cleanup-2015/

Out of Date

Details

Assignee

Reporter

Labels

Affects versions

Priority

Created November 7, 2013 at 1:49 PM
Updated January 20, 2025 at 4:18 PM
Resolved January 20, 2025 at 4:18 PM