lightcouch / LightCouch

CouchDB Java API
www.lightcouch.org
Apache License 2.0
67 stars 70 forks source link

Adding Gson annotations to the Page<T> object to make it serialize nicely #68

Open wasperen opened 6 years ago

wasperen commented 6 years ago

I am working on a set of Nifi - CouchDB processors. Using the Page mechanism to chunk results up in a set of smaller FlowFiles.

Rather than create my own "Page"-like object, I would like to annotate your Page class such that it serializes nicely. My idea is to make the nextParam a transient field and define lower case with underscore alternative names for the other fields.

I'll create a pull request to show what I mean.