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.



Reply via email to