Annotating collection with @OrderBy without specifying attribute does nothing

Description

None

Environment

None

Activity

Show:
Matus Zamborsky
December 12, 2013, 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.

Matus Zamborsky
December 12, 2013, 11:42 AM

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

Cheers, Matus

Brett Meyer
December 12, 2013, 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.

Assignee

Brett Meyer

Reporter

Matus Zamborsky

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure