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?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918774#3918774

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918774


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to