Re: [jackson-user] @JsonIgnore doesn't ignore @JsonManagedReference within mixin

2018-04-04 Thread Dmitry Polovka
Yeap, moving `@JsonManagedReference` to getter makes difference. Thanks. 

On Thursday, 5 April 2018 06:11:13 UTC+3, Tatu Saloranta wrote:
>
> Does it work if you add `@JsonIgnore` directly on type? 
>
> I suspect this could be because you are adding mix-in to getter, but 
> `@JsonManagedReference` is added to field. 
> So another thing to checkout would be to try to move one `@ 
> JsonManagedReference` to getter and see if that makes difference. 
>
> -+ Tatu +- 
>
>
> On Wed, Apr 4, 2018 at 6:28 PM, Dmitry Polovka  > wrote: 
> > I prepared small archive with example, but somehow @JsonManagedReference 
> is 
> > not removed from serialization result, when is marked with @JsonIgnore 
> in 
> > mixin. 
> > 
> > Is it desired behavior or bug? For me it looks more like a bug. 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To post to this group, send email to jackso...@googlegroups.com 
> . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jackson-user] @JsonIgnore doesn't ignore @JsonManagedReference within mixin

2018-04-04 Thread Tatu Saloranta
Does it work if you add `@JsonIgnore` directly on type?

I suspect this could be because you are adding mix-in to getter, but
`@JsonManagedReference` is added to field.
So another thing to checkout would be to try to move one `@
JsonManagedReference` to getter and see if that makes difference.

-+ Tatu +-


On Wed, Apr 4, 2018 at 6:28 PM, Dmitry Polovka  wrote:
> I prepared small archive with example, but somehow @JsonManagedReference is
> not removed from serialization result, when is marked with @JsonIgnore in
> mixin.
>
> Is it desired behavior or bug? For me it looks more like a bug.
>
> --
> 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 post to this group, send email to jackson-user@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.