You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by jo...@apache.org on 2016/04/07 04:08:07 UTC
deltaspike git commit: DELTASPIKE-1105 Updated preceding example.
Repository: deltaspike
Updated Branches:
refs/heads/master 81cc717e1 -> 6bef4aca2
DELTASPIKE-1105 Updated preceding example.
Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/6bef4aca
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/6bef4aca
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/6bef4aca
Branch: refs/heads/master
Commit: 6bef4aca2cf3126a0aadcdafed6674f269b919bd
Parents: 81cc717
Author: John D. Ament <jo...@apache.org>
Authored: Wed Apr 6 22:07:58 2016 -0400
Committer: John D. Ament <jo...@apache.org>
Committed: Wed Apr 6 22:07:58 2016 -0400
----------------------------------------------------------------------
documentation/src/main/asciidoc/data.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltaspike/blob/6bef4aca/documentation/src/main/asciidoc/data.adoc
----------------------------------------------------------------------
diff --git a/documentation/src/main/asciidoc/data.adoc b/documentation/src/main/asciidoc/data.adoc
index 6d8e650..1a64188 100644
--- a/documentation/src/main/asciidoc/data.adoc
+++ b/documentation/src/main/asciidoc/data.adoc
@@ -653,8 +653,8 @@ the query:
[source,java]
-----------------------------------------------------------
List<Person> result = personRepository.findAllByAge(18, 65)
- .orderAsc(Person_.lastName)
- .orderDesc(Person_.age)
+ .orderAsc("p.lastName", false)
+ .orderDesc("p.age", false)
.lockMode(LockModeType.WRITE)
.hint("org.hibernate.timeout", Integer.valueOf(10))
.getResultList();