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 ?