You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by lonvarscsak <gi...@git.apache.org> on 2017/08/01 20:19:04 UTC

[GitHub] cayenne pull request #237: Added the Orderings class to support chaning of a...

GitHub user lonvarscsak opened a pull request:

    https://github.com/apache/cayenne/pull/237

    Added the Orderings class to support chaning of asc() through Ordering

    I have added this class as a convenience to chain Ordering calls and then passing them into APIs that support List<Ordering>.  Here's an example:
    
    Person.COMPANY_NAME.asc().then(Person.LAST_NAME.desc()).then(Person.FIRST_NAME.asc())

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/smarthealth/cayenne upstream

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/237.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #237
    
----
commit 8ed4db601270680bb1943285a0b970a0965018ef
Author: Lon Varscsak <lo...@gmail.com>
Date:   2017-08-01T20:10:58Z

    Added the Orderings class (a subclass of ArrayList<Ordering>) to support chaning of asc() with then(..) through Ordering

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cayenne pull request #237: Added the Orderings class to support chaning of a...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cayenne/pull/237


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---