|
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:
<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/>.
|