Skip to content

Commit bf51a9b

Browse files
loicdescottexabolcs
authored andcommitted
[playframework#878] More OrderBy examples
(cherry picked from commit 40dffac)
1 parent a782e40 commit bf51a9b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

documentation/manual/jpa.textile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,14 @@ Simple queries follow the following syntax <code>==[Property][Comparator]And?[Or
135135
* @IsNotNull@ - Not a null value (doesn't require an argument)
136136
* @IsNull@ - Is a null value (doesn't require an argument)
137137

138-
and Orderdirective can be (for a property named @property@) :
138+
and Orderdirective can be (e.g for a property named @name@) :
139139

140-
* @OrderByProperty@ - default ascending order
141-
* @OrderByPropertyDesc@ - descending order
140+
* @OrderByName@ - default ascending order
141+
* @OrderByNameDesc@ - descending order
142+
143+
you can also use several attributes in Orderdirective :
144+
* @OrderByNameAndAge@
145+
* @OrderByNameAndAgeDesc@
142146

143147
h3. Find using a JPQL query
144148

0 commit comments

Comments
 (0)