Re: sort attribute for referenced relation

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Nov 13 2002 - 12:33:29 EST

  • Next message: David Solis: "Integration with Session Beans"

    Hi Martin,

    this feature is not there yet. In fact one of our contributors, Holger, is
    currently working on it. For now you will probably need to do an explicit
    in-memory sort of the Tasks list, for instance using Ordering.orderList()
    per
    http://objectstyle.org/cayenne/api/org/objectstyle/cayenne/query/Ordering.ht
    ml

    Cheers

    Andrus

    martin ruff writes:

    > Hi I've got a relation Projects that has a 1:N relationship to Tasks
    > works all fine if I load the Projects then I get all the tasks for each
    > project as defined in the relationship.
    > now I would like to set a sortorder for the taksk, can I do that?
    > I set a sort Order for the projetcts query.addOrdering("name", true);
    > but how can I set a sort order for the implicit loaded tasks for each
    > project (which realation name is tasksArray)?
    > any help is very appreciated
    > thanks
    > martin
    >
     



    This archive was generated by hypermail 2.0.0 : Wed Nov 13 2002 - 12:33:32 EST