Change the name of the XML elements
package com.pluralsight.model;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Stuff {
private String description;
private double price;
@XmlElement(name = "desc")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@XmlElement(name = "stuffPrice")
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
}