0 Replies Latest reply on Jan 20, 2006 5:31 PM by Rene Lavoie

    Advice please

    Rene Lavoie Newbie

      Would there be any side effects to this type of composition:

      class A{
      Parent parent;
      Child child;
      GrandChild grandChild;
      }

      class Parent{
      Long id;
      String parent;
      List children; //LAZY ?
      }
      class Child{
      Long id;
      String child;
      Parent parent;
      List grandChildren; //LAZY ?
      }
      class GrandChild{
      Long id;
      String grandchild;
      Child child;
      }

      The parent/child/grandChild are needed for drill downs and menus, yet they are also properties of Class A. Is this sane?