My requirement is i have to set @XmlAttribute name dynamically.
String nameValue="code";
@XmlAttribute(name = nameValue) //unable to set String Variable as name param
protected String value;
The value for annotation attribute XmlAttribute.name must be a constant expression
is there any way to send @XmlAttribute name param dynamically.