Groups
Groups
Sign in
Groups
Groups
resthub-dev
Conversations
About
Send feedback
Help
Extending ServiceBasedRestController for sorted pages?
27 views
Skip to first unread message
manos
unread,
Dec 11, 2012, 5:43:25 AM
12/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to resthub-dev
the current implementation of findPaginated is not sorting-aware. Was
wondering if anyone has a quick fix for this?
Seb
unread,
Dec 11, 2012, 8:52:23 AM
12/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to resth...@googlegroups.com
This is support on Repository and Service layer (thanks to the Pageable parameter), but not on Controller currently.
Please create an issue on
https://github.com/resthub/resthub-spring-stack/issues?state=open
, it is a good candidate for RESThub 2.1.
If you want to fix this quickly, just expose in your Controler a parameters that allow you to create a Pageable object (
http://static.springsource.org/spring-data/data-commons/docs/1.1.0.RELEASE/api/org/springframework/data/domain/Pageable.html
) with a Sort property (
http://static.springsource.org/spring-data/data-commons/docs/1.1.0.RELEASE/api/org/springframework/data/domain/Sort.html
).
Seb
unread,
Dec 12, 2012, 3:38:54 AM
12/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to resth...@googlegroups.com
Do you think you could contribute such functionnality thanks to a pullrequest ?
Reply all
Reply to author
Forward
0 new messages