Hey,

I was wondering if there would be interest in introducing a Pageable interface analogous to what Spring Data has or if the DeltaSpike answer to this is the QueryResult interface.

Being able to pass in the pagination configuration as parameter has the advantage that one could e.g. write a JAX-RS RequestBodyReader for constructing the object from various sources. Without such a Pageable interface, users would have to map the request parameters manually to the respective operations in a QueryResult which is quite repetitive and not really allows for extensions. I implemented an extension for Spring Data and Spring MVC that adds support for keyset pagination which is made easily possible because I can just subclasss the Pageable interface of Spring Data and handle the deserialization in a custom MethodArgumentResolver. I'd like to do the same for DeltaSpike Data with JAX-RS which forces me to create my own Pageable interface.

Since I just read that Mark is proposing to set the required Java base version to 8, I was wondering if this means there will be a 2.0 release that is Java 8ified. If so, I would like to propose to add this Pageable stuff to DeltaSpike Data 2.0.

Comments, thoughts? :)

--

Mit freundlichen Grüßen,
------------------------------------------------------------------------
*Christian Beikov*

Reply via email to