Recursive relationship


EJB design: Recursive relationship

  1. Recursive relationship (2 messages)


    how can I declare a recursive CMR for a Parent-Chrildren relation.

    Here's my actual DD




    The relationship is displayed correctly in deploytool. I tried with 1-N and
    M-N relation.
    But during deployment it only creates one table 'PersonEJBTable' and one
    'PersonEJB_children_PersonEJB_Table'. The first one is correct is gets
    when I create Person entities. But the second table only has one column
    and this one is not filled when I create a relationship like this

      InitialContext initial = new InitialContext();
      PersonLocalHome plh =
      PersonLocal pl = plh.create(name);

    Can anyone tell me what I am doing wrong here?


    Threaded Messages (2)

  2. Recursive relationship[ Go to top ]

    I just saw that there's an SQLExcpetion: EOF encountered when I assign a child to a person. I found out that the STORE statement was not generated by deploytool.
    And the table for the relationship also seems to be wrong as one column is not sufficient to save the realtionship.

    Any suggestions?

  3. Recursive relationship[ Go to top ]

    Gee, whatever happened to good ole JDBC and SQL. I really don't see what is gained by using that CMR crap.