I have a parent that contains a collection of child's.

How can I map the child's such that in java code, the child will contain a
reference to his parent?

I found this solution in the list:
http://www.opensubscriber.com/message/jibx-users@lists.sourceforge.net/13032
372.html
But was wondering if there is a better one such that it's valid for both
marshaling and unmarshaling.

Example:
<parent>
  <child name="bla1">
  </child>
  <child name="bla2">
  </child>
</parent>

Java code:
class Parent {
 List<Child> childs;
}

class Child {
 Parent parent;
}

Thanks,
- Ed


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to