Skip to content

Commit

Permalink
[playframework#878] More OrderBy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
loicdescotte authored and mbknor committed Mar 19, 2012
1 parent 578b4b3 commit 40dffac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions documentation/manual/jpa.textile
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ Simple queries follow the following syntax <code>==[Property][Comparator]And?[Or
* @IsNotNull@ - Not a null value (doesn't require an argument)
* @IsNull@ - Is a null value (doesn't require an argument)

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

* @OrderByProperty@ - default ascending order
* @OrderByPropertyDesc@ - descending order
* @OrderByName@ - default ascending order
* @OrderByNameDesc@ - descending order

you can also use several attributes in Orderdirective :
* @OrderByNameAndAge@
* @OrderByNameAndAgeDesc@

h3. Find using a JPQL query

Expand Down

0 comments on commit 40dffac

Please sign in to comment.