Modeling parent-child relationship

From: Scott Tran (scott_tran200..ahoo.com)
Date: Sat Jun 11 2005 - 10:37:58 EDT

  • Next message: Andrus Adamchik: "Re: Modeling parent-child relationship"

    I'm trying to generate a data object along the lines
    of

    class Node {
      
       String name;
       Node parent;
       List<Node> children;
    }

    I tried to use a join table...but none of the examples
    I looked at used a join table, so I'm not sure if I'm
    doing it right... When I try to generate the java
    class it complains about ObjRelationship has
    incomplete DbRelationship mapping. Any suggestions?

    Thanks,
    Scott

                    
    __________________________________
    Yahoo! Mail
    Stay connected, organized, and protected. Take the tour:
    http://tour.mail.yahoo.com/mailtour.html



    This archive was generated by hypermail 2.0.0 : Sat Jun 11 2005 - 10:38:01 EDT