Hi is it possible to change name of ENUM in Java? For example, I have enum -
public enum CloudType {
AZURE, OPENSTACK
}
And a class -
public class Env{
private CloudType cloudType;
}
And during JACKSON parsing, if I give -
{
"cloudType":"AZURE"
}
Or
{
"cloudType":"azure"
}
It will give me an Env
object with cloudType=AZURE
?
One thread is there (Jackson databind enum case insensitive), but really we need to do this much? Or
@XmlEnumValue("azure")
AZURE("azure"),
will be enough?