Why not just rewrite your finder and put it in your vehicles bean* @ejb.finder * signature="mypackage.VehicleLocal findVehicleById(java.lang.String id, java.lang.Object o)" * query="SELECT OBJECT(m) FROM Vehicle m WHERE m.id = ?1 and m.User.XXX = ?2 LIKE ?1" Simon Godden wrote: Just a question; Is possible to have a finder method that returns some Local interface which is different from Local Interface which calls it?No it is not possible. Finders can only return the type of the interfaceon which they are defined. 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"You can only return users from finders on the user bean------------------------------------------------------- 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_ide95&alloc_id396&opÌk _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user |
- [Xdoclet-user] problem with return finder Tito Eritja
- RE: [Xdoclet-user] problem with return finder Simon Godden
- Re: [Xdoclet-user] problem with return finder Gary Bennett
- Re: [Xdoclet-user] problem with return finder Tito Eritja