Thanks!

I haven't rewrote my finder as relation User-Vehicle is uni-directional,
I just put it on Vehicles bean, and it works perfect.

tito

El jue, 07-04-2005 a las 14:06 +0100, Gary Bennett escribiÃ:
> 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 
> > > > interface
> > > >       
> > on 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
> >   
> 



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

Reply via email to