JAXB类用于复杂的关系

时间:2013-10-22 06:49:38

标签: java jaxb

我想为以下结构定义一个JAXB映射类。

{
"family members": ["me","my dad","someone else"],
"relations" : [{"me":17 years, "my dad":40 years, "relation":son & father}, {"my dad":40 years, "me":17 years, "relation":father & son},{"me": 17 years, "someone else":50 years, "relation":ancestor}]
}

我应该如何注释POJO?请忽略有关避免冗余的建议或其他存储此信息的替代方法。

0 个答案:

没有答案