cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lonvarscsak <...@git.apache.org>
Subject [GitHub] cayenne pull request #237: Added the Orderings class to support chaning of a...
Date Tue, 01 Aug 2017 20:19:04 GMT
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 <lon.varscsak@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.
---

Mime
View raw message