A wise old hermit known only as Ara Abrahamian <[EMAIL PROTECTED]> once
said:
> > > > 0- ejb:relation: remove target-multiple by looking at method
> return
> > > > type and use it for the other end of relation
> > > > 0.1- make getData automatically appear in remote interface (?)
> >
> > 3 options come to mind:
> > - a parameter to @ejb:data-object for
> remoteSetData="true(default)|false"
> > (similarly for remoteGetData and local view equivalents of both).
>
> Don't you think it's just nonsense? :-)
> User could put a @ejb:interface-method!
True, I was just trying to think of a way that didn't rely on having to
add abstract methods just to put tags on. I seem to remember there was
some other tag parameter (finder permissions, maybe?) added for similar
reasons a while ago.
> > - user includes an abstract getData/setData with a @interface-method
> in
> > the EJB class (which is what I've been doing, since it also allows for
> > setting the transaction-type - "Supports" for getData and "Mandatory"
> for
> > setData, though I haven't actually checked they appear in the DD).
> > - allow for both the above :-)
>
> I think leaving it to user is better. We may later add other kind of
> dataobject mechanisms (though using EJB 2 you have less reasons for
> dataobjects) and they may not be a getData() method but something
> different.
But isn't that a reason for *not* having the user add abstract
getData/setData methods with @ejb:interface-method tags? If the mechanism
changes, the abstract methods may need to be updated too (can't leave the
abstract methods there if there's no concrete equivalent generated any
more). If it's all done based solely on @ejb:data-object parameters, then
there's less maintenance needed.
> It's not worth the debate really :-)
> We'll leave as is.
Fair enough.
By the way, I assume that if @ejb:finder is no longer needed for BMP, the
finder permissions should be specified in ejbFindByWhatever()'s
@ejb:permission tags? Also, if you are using CMP and so don't include the
ejbFind methods, how do you specify transaction behaviour for the home
interface's find methods? The obvious way would be a parameter on the
ejb:finder tag (e.g. @ejb:finder transaction="Mandatory|etc."), but
there's nothing like that mentioned in the docs.
Andrew.
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel