Annotating collection with @OrderBy without specifying attribute does nothing

Description

None

Activity

Brett MeyerDecember 12, 2013 at 9:35 PM
Edited

Thanks for the pull request. It's applied solely to 4.3, as your test case was working on 4.2.9-SNAPSHOT.

Matus ZamborskyDecember 12, 2013 at 11:42 AM

I provided a fix and a test in https://github.com/hibernate/hibernate-orm/pull/646 .

Cheers, Matus

Matus ZamborskyDecember 12, 2013 at 9:48 AM

Annotating collection with @OrderBy without specifying attribute does nothing. According to http://docs.oracle.com/javaee/6/api/javax/persistence/OrderBy.html, it should order by primary key. This is regression since 4.1.5.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created December 12, 2013 at 9:46 AM
Updated January 20, 2025 at 6:10 PM
Resolved December 12, 2013 at 9:34 PM