You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2017/09/26 08:20:27 UTC
[06/10] cayenne git commit: Fix code example
Fix code example
(cherry picked from commit 72e9ba6)
Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/5e370208
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/5e370208
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/5e370208
Branch: refs/heads/STABLE-4.0
Commit: 5e370208d449bb5613e3a7144d769b7d2429865c
Parents: 54fc997
Author: Nikita Timofeev <st...@gmail.com>
Authored: Fri Sep 22 11:43:45 2017 +0300
Committer: Nikita Timofeev <st...@gmail.com>
Committed: Fri Sep 22 17:05:15 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/5e370208/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<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