tkaczmarzyk / specification-arg-resolver-example

example of a web application exposing filter API built with specification-arg-resolver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Will this work with paging and sorting as well?

tpdi opened this issue · comments

This looks very clean. Will it with paging and sorting as well?

BTW, if you didn't do that already, then also take a look on the readme of the lib, it includes some extra stuff not present in the original blogpost (like annotated specification interfaces)

That was quick! Thanks, I will spend some time looking at this.

On 6/18/2015 7:12 AM, Tomasz Kaczmarzyk wrote:

Sure. I added an example of that to the sources.

You need to add a standard spring data resolver for pageables:
https://github.com/tkaczmarzyk/specification-arg-resolver-example/blob/master/src/main/java/net/kaczmarzyk/example/Application.java#L26
Then you are ready to go:
https://github.com/tkaczmarzyk/specification-arg-resolver-example/blob/master/src/main/java/net/kaczmarzyk/example/web/CustomerController.java#L66


Reply to this email directly or view it on GitHub
#1 (comment).