JAXB を使用して、次の XML を Person クラスにアンマーシャルしたいのですが、@XmlElement(name = "postcode")
Person クラスの郵便番号フィールドに追加するだけでは機能しません。ここで何が欠けていますか?
<Person>
<name>xyz</name>
<age>123</age>
<details>
<phone>123342</phone>
<postcode>xyz</postcode>
</details>
</Person>
public Class Person {
private String name;
private int age;
private String postcode;
}