How to map properties on the CouchDB document to java model object?

I have within a database a set of documents in CouchDB where their structure is as follow :

    {
      "_id": "adebafb022857385a4c970b0f0000349",
      "_rev": "2-19d78f4d8d6386bfbe7b2c03b5213830",
      "street_number": "20",
      "street_name": "B.Baker St",
      "city_name": "Marylebone",
      "zip_code": "2550",
      "status": "active"
    }

as you can see the properties are not camel-cased, I have tried to make the mapping using JsonProperty, however, I get null value in all properties except for status property.

I have pushed the code in this repo link

Any help is much appreciated

Regarding the CouchDB, I using a docker container with CouchDB image.

Hello @azdoud thank you for participating in our forums.
These forums are for the Couchbase database products, not CouchDB, so we won’t be able to assist with questions for CouchDB. That said, I would highly recommend trying out Couchbase which shares some of the features of CouchDB but has many more advantages, see https://www.couchbase.com/comparing-couchbase-vs-couchdb for the differences.

You can get started today https://www.couchbase.com/downloads

Thank you,
Ian McCloy (Couchbase, Principal Product Manager)

1 Like