cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne git commit: Fix code example
Date Fri, 22 Sep 2017 08:44:18 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master dda1a8995 -> 72e9ba60c


Fix code example


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/72e9ba60
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/72e9ba60
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/72e9ba60

Branch: refs/heads/master
Commit: 72e9ba60cf2c6a125146ce9bd7108a0f9ced6e08
Parents: dda1a89
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Fri Sep 22 11:43:45 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Fri Sep 22 11:43:45 2017 +0300

----------------------------------------------------------------------
 docs/docbook/cayenne-guide/src/docbkx/queries-select.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/72e9ba60/docs/docbook/cayenne-guide/src/docbkx/queries-select.xml
----------------------------------------------------------------------
diff --git a/docs/docbook/cayenne-guide/src/docbkx/queries-select.xml b/docs/docbook/cayenne-guide/src/docbkx/queries-select.xml
index 87a265a..035fdb2 100644
--- a/docs/docbook/cayenne-guide/src/docbkx/queries-select.xml
+++ b/docs/docbook/cayenne-guide/src/docbkx/queries-select.xml
@@ -54,8 +54,8 @@ INFO: === returned 1 row. - took 6 ms.</screen>
         </para>
         <para>To order the results of ObjectSelect, one or more orderings can be applied:
             <programlisting language="java">List&lt;Artist> objects = ObjectSelect.query(Artist.class)
-    .addOrderBy(Artist.DATE_OF_BIRTH.desc())
-    .addOrderBy(Artist.NAME.asc())
+    .orderBy(Artist.DATE_OF_BIRTH.desc())
+    .orderBy(Artist.NAME.asc())
     .select(context);</programlisting>
         </para>
         <para>There's a number of other useful methods in ObjectSelect that define
what to select


Mime
View raw message