I have a generated Java Class which is annotated with @XMLElement
on the fields to change the name from upper to lower case:
class RECTYPE {
@XmlElement(name = "simple")
public String SIMPLE;
@XmlElement(name = "bool")
public Boolean BOOL;
}
I know I could use @JsonProperty
(Change field name in JSON using Jackson) to get lower case Json but I don't want to change my generated class.
Can I somehow use the name
property of the @XMLElement
Annotation that I have and tell Jackson to use it?
Thanks!