|
Matus Zamborsky's fix was in the right direction, but not complete. JoinedSubclassEntityPersister#naturalOrderTableKeyColumns & #naturalOrderPropertyTableNumbers needed to be looped over to correctly handle all identifier situations, rather than explicitly returning 0.
Matus Zamborsky, your point about @OrderBy w/o an attribute is interesting and, if still a problem, should be broken out into a separate JIRA and pull request. Interested?
|