spring-data-couchbase: MappingCouchbaseConverter.read() is not recursive

Using Cluster.query() I’m parsing the result into classes that have child object. A quick exemple to visualise :

@Data
public class A {
    String someProp;
    SubA nestedObject;

    @Data
    public static SubA() {
        String someNestedProp;
    }
}

Doing converter.read(A.class, document) leads to nestedObject being a HashMap<String, String> instead of a SubA as anyone would expect. Am I doing this wrong or are my expectations correct ?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22

Most upvoted comments

I’m going to keep this open as someone else hit this and I need to update the documentation.