2 Replies Latest reply: Sep 25, 2011 1:08 AM by EJP RSS

    Urgent : java bean having bidirectional one to many relationship

    890312
      Hi,

      We have complex requirement in our application.

      We need to copy java bean having bidirectional one to many relationship to another javabean having bidirectional one to many relationship..


      E.g

      Class Basket1 {

      public String color;
      pubic String type;
      public List<Basket1> basketList = new ArrayList()
      }


      Class Basket2 {

      public String color;
      pubic String type;
      public List<Basket2> basketList = new ArrayList()
      }

      We need to exact copy Basket1 to Basket2. We are in trouble to copy List of child because we do not have how many child Basket1 have of same type..

      Can someone help us how we can implement such kind of complex object bidirectional one to many relationship??