Hi,

I'm trying to use @JsonManagedReference and @JsonBackReference with an 
intermediate object in bewteen.

Let's say I have those 3 objects:

    class Parent {

        Bucket childrenBucket;

    }

    class Bucket {

        @JsonManagedReference
        List<Child> children;

    }

    class Child {

        @JsonBackReference
        Parent parent;

    }

This is failing because of: 
"com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot 
handle managed/back reference 'defaultReference': back reference type 
(Parent) not compatible with managed type (Bucket)"

Is there a way to achieve this?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jackson-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/833a6f94-9753-4638-ad5a-eff9a27d46e8%40googlegroups.com.

Reply via email to