I have used @JsonIgnore annotation in both field and the setter in my entity to achieve the deserialization issue as mentioned in the following question.
My issue was to prevent deserialization of a particular field which had already serialized.
This is the question I posted earlier
But now we are getting the following exception due to that modification when trying to build the spring web project. But the module which we did the change builds successfully.
org.springframework.data.mapping.model.MappingException: Ambiguous mapping! Annotation JsonIgnore configured on field yyyyyy and one of its accessor methods in class XXXXXEntity!
Any comment about this is highly appreciated.