0 Replies Latest reply on Mar 2, 2005 11:26 PM by ericmacau

    CMP/CMR (ejb-ql problem)

    ericmacau



      BeanA (1) ----------- (*) BeanB

      class BeanA {
      public abstract String getName();
      ...

      public abstract Set getAllBeanBs();
      ...
      }

      class Bean B {
      public abstract String getId();


      }



      BeanA and BeanB are undirectional relationships.

      there is a method "public abstract Set getAllBeanBs()" in BeanA.

      I can retrieve all the BeanBs by defining a ejb-sql for findAll() in BeanB.

      My question is that, how can I retrieve the name of BeanA in BeanB?

      can ejb-ql do that? could you please to teach me ?