hibernate/hibernate-orm — pull request #615 by backslash47 (2013-10-16 21:31:04+00:00)
Title: HHH-7630 Add identifier columns names to search

I tried to solve the long standing issue of not being able to @OrderBy primary key of supperclass (regression since 4.1.5; change in JoinedSubclassEntityPersister.java). Besides I have found, that using @OrderBy without attribute name do nothing (maybe JIRA HHH-7888 ?). It can be solved by removing one check (CollectionBinder.java; All tests still pass).

I added for both cases unit tests where I used Composite Primary key to better test the functionality.