How to Specify a Different Name for an Element
By default, JAXB uses the property name or field name as element name. If you don't want this, use an @XmlElement annotation with name parameter.
public class Movie {
@XmlElement(name="movie-title")
public String title;
@XmlAttribute(name="release-year")
public int releaseYear;
}

