Hi,
My issue is best described with an example. The question is: in the
following code, how can I replace HOWTOGETTOPARENTOBJECT? in the binding
so that I get parentBindingField.name, knowing that Player doesn't have
a Team field:
<club>
<name> Liverpool </name>
<squad>
<player>
<team>Liverpool</team>
<name>Joe Cole</name>
</player>
<player>....</player>
</squad>
</club>
Java:
Club{
String name;
List players
}
Player{
String playerName;
}
Jibx binding:
<binding>
<mapping class="Team">
<collection name="squad" usage="optional" field="players"
create-type="java.util.ArrayList">
<value name="squad" field="HOWTOGETTOPARENTOBJECT? I
want team.name
here!"/>
<value name="name" field="name"/>
</collection>
</mapping>
</binding>
Thank you in advance,
Miguel Almeida
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users