Ok great, I'll look into this.

As for JEE8, I'd prefer to keep JEE7 as the baseline for 2.0 as JEE8 doesn't seem to be very widespread yet.


Mit freundlichen Grüßen,
------------------------------------------------------------------------
*Christian Beikov*
Am 01.03.2018 um 10:16 schrieb Thomas Andraschko:
Feel free to work on patch! ;)

And yes, probably DS2.0 will need some redesigns or enhancements based on
Java8.
We also already talked about if DS2.0 should only target JEE8, to do a
little cleanup on the project.
I think we will need to start a new discussion, but don't know if anyone
has time until TomEE8 is ready ;)

2018-03-01 9:30 GMT+01:00 Christian Beikov <[email protected]>:

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