Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-995

improve custom serialization support in subdoc

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 2.3.3
    • 2.3.2
    • None
    • None

    Description

      Subdocument's MutateInBuilder and LookupInBuilder both can be configured with a FragmentTranscoder, but it can only be set when manually constructing the instances.

      Additionally, the only implementation currently is based on the shaded version of Jackson, which implies that it cannot be constructed with a client-provided ObjectMapper (unless they instantiate a shaded one) nor will it consider client-side Jackson annotations like @JsonIgnore...

      Third issue is that the LookupInBuilder doesn't allow to perform a get with a specific class, leading to the FragmentTranscoder deserializing fragments as generic Object like a Map (or a JsonObject in the case of the default implementation).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty