On Fri, 17 Aug 2001, Vincent Harcq wrote:
> 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.
you mean we automatically put finders in for each persistent field?
> 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 just wrote (and deleted) that doing it via jdbc doesn't really fit in
with XDoclet... but then I thought "why not"... of course there is no
reason it cant be done via XDoclet (o: geez this is powerful.... leave it
with me...
cheers
dim
>
> >
> > (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