[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-895) Repeated first column when ordering by component
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 21 13:00:34 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list