[
http://opensource.atlassian.com/projects/roller/browse/ROL-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14240
]
Simon Haslam commented on ROL-1612:
-----------------------------------
See also ROL-1166.
Note if we had a PRIORITY column on the WEBLOGCATEGORY table then presumably
the underlying Hibernate SQL could just do an ORDER BY PRIORITY and then it
would be implementation independent (or at least it would only depend on the
implementation if the user set all categories to the same priority).
> Categories not ordered when displayed on page
> ---------------------------------------------
>
> Key: ROL-1612
> URL:
> http://opensource.atlassian.com/projects/roller/browse/ROL-1612
> Project: Roller
> Issue Type: Bug
> Components: Page Rendering & Management
> Affects Versions: 4.0
> Reporter: David Johnson
> Assignee: Roller Unassigned
> Priority: Minor
>
> From Matt Raible:
> Any idea why the order of my categories is reversed after upgrading? Seems
> like a bug.
> http://static.raibledesigns.com/roller3-categories.png
> http://static.raibledesigns.com/roller4-categories.png
> From Dave Johnson:
> I'm not sure why this changed, Hibernate was using sort="unsorted" so
> I guess the random order that Hibernate chose is different than the
> random order OpenJPA chooses.
> Looking at weblog.vm and WeblogCategory.orm.xml I see that the
> categories come from a one-to-many relationsip:
> <one-to-many name="weblogCategories" mapped-by="parent"
> target-entity="org.apache.roller.weblogger.pojos.WeblogCategory"
> fetch="LAZY">
> <order-by>name ASC</order-by>
> <cascade>
> <cascade-remove/>
> </cascade>
> </one-to-many>
> I added the <order-by> element, but it does not seem to correct the order.
> Any body have other ideas on this one?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira