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