Ankur Raiyani commented on Bug JIBX-484

Finally i resolved it.
i have to update may mapping/binding of User as below.

<mapping class="com.jibx.entity.User" name="User" ordered="false" flexible="true" allow-true="true">
<value name="Name" field="name"/>
<value name="Email" field="email"/>
<structure type="com.jibx.entity.Address" set-method="addAddress" field="singleAddress"/>
</mapping>

Also, i have to update User class as below.

public Address singleAddress;
....
//getter-setter of it.
....
public void addAddress(Address address) { this.getAddress().add(address); }

Please let me know if there is any better solution to it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to