Hi,

> Wouldn't it be better to be EJB-QL compliant and leave the query
> to the app
> server? It would make the code more portable, but maybe less efficient,
> since the app server would do the query, and not the rdbms. -And I guess
> JBoss doesn't support it yet, but it should. What I mean is something like
>
> query="select * from order where ctry = ?1.code"

There is 2 things :
 - finder methods that instantiate (bad word) entity beans in ejb container
and return remote/local interfaces
 - _catalogs_ (PetStore sense) that simply return detail objects : more
efficient (even sometimes a lot more).

I agree completely with you for the first one.
I would also like to see the second.  I need it, I will do it on my part.

To all now:
IMHO, Catalog is well accepted pattern and having it in XDoclet would be
good.  I put them as Home method (ejb 2.0) of entity beans.  I don't know if
that is a pattern.  Do you agree putting that in standard XDoclet or I keep
it separate ?

>
> (I really hope my Lotus Notes email doesn't look too bad on the mailing
> list :)

It looks good :)

>
> :aslak
>
> Hi,
>
> >this could also include mass data queries, done via jdbc rather
> > than ejbFinder, and should be a lot cheaper...  not sure if this is
> > relevant though.
>
> Do you want to create these methods inside the Bean ?
> In a Home method ?
>
> Something like @ejb:catalog name="catalogByCountry(Country ctry)"
> type="OrderDetail" query="select * from order where ctry = {1}.getCode()"
>
> That create a Home method ejbHomeCatalogAll()
> And use the jboss:column-name (hum...) to do the mapping automatically to
> the "type" detail object ?  And return a Collection of these Detail
> Object...
>
> Just an idea, but that would be nice...
>
> Then complete DAO support for BMP Bean would be nice also...
>
>
> >
> > cheers
> > dim
> >
>
> Vincent
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
>
>
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/xdoclet-devel
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to