Skip to content
Advertisement

Tag: xml-serialization

Jackson serializes Enum to NAME not value (XML) Java

I have this Enum defined: I have a model object that has a OutputFormatEnum variable called OutputFormat. When I set this variable to OutputFormatEnum.PDF, it is initially registered as “pdf” which is what it should be. When I then execute the following code: It sets the value of OutputFormat in streamTemplate to “PDF”, where it should be “pdf” (the value

Advertisement