Imagine a situation when you have a model in Java, and you have to serialize it both to XML and CSV.
I am using Jaxb Marshaller
for XML and Jackson's CsvMapper
(ObjectMapper
) for CSV.
Since the formats are slightly different, I want Jackson's CsvMapper
to ignore Jaxb
related annotations like @XmlType
or @XmlElement
. Because Jackson is getting information/considers xml annotations as well and it leads to wrong result.
How can I do it?