0

我有以下结构:

   class A {

       @XmlIDREF
       List<B> myListA = new ArrayList<B>();
       ....
   }

   class B {

    List myListB<C> = new ArrayList<C>();

     @XmlID
     private String getStringId() {
          return id;
     }

}

封送处理时,只有getStringId() 的结果才可见。集合 myListB 不是编组。换句话说,我无法在我的 XMl 中看到 B 类的所有数据结构。为什么?

4

0 回答 0