1 Reply Latest reply on Apr 16, 2008 4:55 AM by Robert Perry

    How to manage two instances in Home component?

    Ovidiu Stanciu Newbie


      I have a problem. Let's say I have 2 Entities : Child and Parent. Every child has 2 parents, that is in Child there are 2 fields:

      public class Child{
             private Parent mom;
             private Parent dad;

      And Parent has a gender:

      public class Parent{
            private int gender; //1 or 2

      Also, I have a ChildHome and a ParentHome. My question: on the ChildEdit (ChildHome component) page, how do I select 2 different(one of each gender) instances of Parent for the Child?
      Do I need to have 2 instances of ParentHome in ChildHome?

      Thank you for your time.