deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject deltaspike git commit: DELTASPIKE-1105 Updated preceding example.
Date Thu, 07 Apr 2016 02:08:07 GMT
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 <johndament@apache.org>
Authored: Wed Apr 6 22:07:58 2016 -0400
Committer: John D. Ament <johndament@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(); 


Mime
View raw message