Short version:
I use Jersey 1.17 and Jackson 2.1.4, but Jersey ignores every Jackson annotation I use. What for!? Has anyone encountered the same problem?
Long version:
I have a RESTful web service using Jersey 1.17 and Jackson 1.9.2, and I used the @JsonManagedReference and @JsonBackReference annotations to solve the bi-directional relationship problem and everything works fine.
The other day, I saw a version of Jackson 2.1.4 that contained the @JsonIdentityInfo annotation, which seemed like a great solution to my problems, so I changed the jar files to Jackson 2.1.4. However, the promising @JsonIdentityInfo annotation did not work, and Jersey completely ignored it, and after some debugging and code changes, I found out that even the previous @JsonManagedReference and @JsonBackReference annotations are ignored by Jersey. Therefore, it seems that Jersey completely ignores Jackson 2.1.4 annotations. What for!? Has anyone encountered the same problem?
source share