0 Replies Latest reply on Nov 27, 2006 2:13 AM by martinganserer

    Problems with self referencing entites

    martinganserer

      Hello,

      I have got an entity bean let's call it users. This entity has a many to many relationship to other user entity beans.

      Basically everything works fine but I have got a problem when I want to get really all users of one user.
      (A user consists of many users and one of these users can have further users and so on)


      I really tried everything:
      - setup an ejbQL statement -> didn't work
      - defining a stateless session bean that performs recursive calls -> this failed because SLSB might have problems with recursive invocations.

      Is there anybody that faces the same problems or might have found a solution for my problem? To be honest I really don't care about the implementation itself. It must "only" work!

      Regards