We're updating the issue view to help you get more done. 

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:

1 2 3 4 5 <sql-result-set-mapping name="..."> <entity-result/> <constructor-result/> <column-result/> </sql-result-set-mapping>

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

Environment

None

Status

Assignee

Unassigned

Reporter

Christian Bauer

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

4.3.0.Beta5

Priority

Minor