On Nov 7, 2007 12:19 AM, Matt Raible <[EMAIL PROTECTED]> wrote:
> > http://static.raibledesigns.com/roller3-categories.png
> >
> > http://static.raibledesigns.com/roller4-categories.png
>
> 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?

- Dave

Reply via email to