Re: [JIRA] Commented: (CAY-705) Ordering.sortList() does not work with null relationships

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 08 2007 - 08:16:47 EST

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-749) Resource folder names misspelled for Postgres and Ingres"

    IIRC there was a follow up discussion on that somewhere on the list.

    Personally I am against changing the default behavior. But adding an
    alternative behavior is OK. My idea of a "cayenne workaround" is this:

    * add "nullPolicy" (naming?) flag to the ASTObjPath
    * add ExpressionFactory.setNullPolicy(Expression) method that walks
    the expression flipping this flag (maybe to be consistent with the
    rest of ExpressionFactory methods, it can clone the original
    expression and return an altered copy).

    So patches are welcome :-)

    Andrus

    On Feb 8, 2007, at 2:50 PM, Marcin Skladaniec (JIRA) wrote:
    > [ https://issues.apache.org/cayenne/browse/CAY-705?
    > page=com.atlassian.jira.plugin.system.issuetabpanels:comment-
    > tabpanel#action_12227 ]
    >
    > Marcin Skladaniec commented on CAY-705:
    > ---------------------------------------
    >
    > Is the "Resolution = Won't Fix" final ?
    > If so I have to work my way around.
    >
    > Regards
    > Marcin
    >
    >> Ordering.sortList() does not work with null relationships
    >> ---------------------------------------------------------
    >>
    >> Key: CAY-705
    >> URL: https://issues.apache.org/cayenne/browse/CAY-705
    >> Project: Cayenne
    >> Issue Type: Bug
    >> Components: Cayenne Core Library
    >> Affects Versions: 3.0
    >> Reporter: Marcin Skladaniec
    >>
    >> When list is sorted with customOrdering.sortList(list), and
    >> sorting is based on the field from the relationship the exception
    >> is raised.
    >
    > --
    > This message is automatically generated by JIRA.
    > -
    > You can reply to this email to add a comment to the issue online.
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Feb 08 2007 - 08:17:22 EST