JAXB (JSR-222) implementations don't require any annotations at all:
I suspect there is something wrong with your getter/setter pairs. You need to make sure they are like the following:
public int getName() {
return name;
}
public void setName(int name) {
this.name = name;
}
UPDATE
I was apparently a victim of late night coding. When generating getters/setters I only chose getters and that JAXB did not like at all.
By default JAXB won't treat properties with only a getter as mapped. With only a getter you need to annotate with @XmlElement
.
@XmlElement
public int getName() {
return name;
}