Just a question; Is possible to have a finder method that returns some
Local interface which is different from Local Interface which calls it?


I have a EJB like that:

@ejb.bean
 *      name="User"
 *     
[...]
* @ejb.finder
*   signature="mypackage.VehicleLocal findVehicleById(java.lang.String
id)"
 *      query="SELECT OBJECT(m) FROM User u, IN(u.vehicles) m WHERE m.id
LIKE ?1"

the function vehicles is an abstract ejb-relation function wich returns
a Collection of Vehicles.

the xdoclet generates the ejb-jar as expected, but in the UserLocalHome
Interface I get that:

public interface UserLocalHome extends javax.ejb.EJBLocalHome
{
 [...]
 
 public mypackage.UserLocal findVehicleById(java.langString id) throws
javax.ejb.FinderException;

so the finder function returns UserLocal instead of VehicleLocal        

What I'm doing wrong?, need more info?

thanks 

tito
 






-------------------------------------------------------
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
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to