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 ?

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to