[
https://issues.apache.org/jira/browse/ROL-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glen Mazza closed ROL-1612.
---------------------------
Resolution: Duplicate
Now covered by ROL-1981.
> Categories not ordered when displayed on page
> ---------------------------------------------
>
> Key: ROL-1612
> URL: https://issues.apache.org/jira/browse/ROL-1612
> Project: Apache 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 was sent by Atlassian JIRA
(v6.1.5#6160)