12 messages in org.apache.roller.devRe: VOTE: Release 4.0RC9 as Apache Ro...
FromSent OnAttachments
DaveOct 29, 2007 9:06 am 
Anil GangolliNov 3, 2007 9:40 am 
DaveNov 5, 2007 9:36 am 
Matt RaibleNov 5, 2007 9:50 am 
DaveNov 5, 2007 2:58 pm 
Matt RaibleNov 5, 2007 4:00 pm 
Matt RaibleNov 5, 2007 4:10 pm 
Matt RaibleNov 5, 2007 4:32 pm 
Matt RaibleNov 6, 2007 9:19 pm 
DaveNov 9, 2007 6:20 am 
Matt RaibleDec 9, 2007 8:47 pm 
DaveDec 10, 2007 9:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: VOTE: Release 4.0RC9 as Apache Roller 4.0Actions...
From:Matt Raible (ma@raibledesigns.com)
Date:Dec 9, 2007 8:47:05 pm
List:org.apache.roller.dev

Here's a good question - how come the categories show up in the proper order when I'm editing a weblog entry? By "proper", I mean the order I want them to show up - which seems to resemble the order in which I created them.

http://static.raibledesigns.com/roller4-categories-weblog.png

The NFJS, JavaOne and DJUG used to be named Java / NFJS, etc. - Is this a known issue?

Thanks,

Matt

On Nov 9, 2007 7:20 AM, Dave <snoo@gmail.com> wrote:

On Nov 7, 2007 12:19 AM, Matt Raible <ma@raibledesigns.com> wrote:

Any idea how to fix this? I'd like to deploy 4.0 to my blog and this is the only issue preventing me from doing so.

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?