]
Steve Ebersole closed HHH-895.
------------------------------
Closing stale resolved issues
Repeated first column when ordering by component
------------------------------------------------
Key: HHH-895
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-895
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.0.5
Environment: 3.0.5
Reporter: Nebojsa Bozovic
Priority: Minor
In org.hibernate.criterion.Order, on line 39,
fragment.append( columns[0] ).append( ascending ? " asc" : " desc"
);
This causes the first mapped property of a component property by which we are ordering to
be repeated for as many mapped properties as the component has. This is erroneous and
produces an exception.
fragment.append( columns[i] ).append( ascending ? " asc" : " desc"
);
Was probably intended.
While you're at it, make the member variables 'ascending' and
'propertyName' protected. Private member variables make the class difficult to
extend.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: