You need to use a <mapping> for anything that's recursive, but that's the only special requirement. This will do it:

 <mapping name="customer" class="Customer">
   <structure get-method="getCustomer" set-method="setCustomer"/>
 </mapping>

 - Dennis

Kr wrote:

Hi,

Say I have below Customer class :


Customer.java
-----------------------
public class Customer {
   Customer customer = null;
   public void setCustomer(Customer cust) {
                this.customer = cust;
        }
        public Customer getCustomer() {
                return this.customer;
        }
}


Now can anyone please tell me how to write binding.xml. How to handle
recursive structures like this with JiBX. Please suggest ?


Thanks.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to