Hi,

I have a question about mapping Collection attribute. Says I have the the following class:

Person {
  private Set<Person> employees;
}

And defines mapping like this:
<collection field="employees" type="java.util.HashSet" item-type="Person" />

will results in XML file like this:

<person>
  <person>
  </person>
  <person>
  </person>
</person>

What if I would like the XML file to look like this:

<person>
  <employees>
     <person>
     </person>
     <person>
     </person>
  </employee>
</person>

How should I define the mapping to achieve this kind of structure?

Regards,

Vairoj



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to