I have two CMP beans Customer and Credit.
Customer declares:
public abstract CreditLocal getCreditCard();
public abstract void setCreditCard(CreditLocal card);
Everything works fine. I try to exploit this relationship in a finder method using the following xdoclet code:
* @ejb:finder signature =
* "java.util.Collection findCreditCards()"
* query = "SELECT c.creditCard FROM Customer c"
* unchecked = "true"
What I get is a collection of CustomerLocal references instead of CreditLocal references.
Is this what I should get or how could I correct this (using paths) to get a collection of CreditLocal references?