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?