Hi,
Note: ejbdoclet is dead, please use xdoclet's mailing lists
(unfortunately we put wrong address in docs). And please upgrade to
latest code from cvs, it's way better than the 1.0.1 version. We'll
release 1.1 very soon.
Regarding orion support, I'm the guy who added orion support but I'm not
using orion anymore (sadly). So I'll be glad if someone could maintain
it hereafter officially.
> I've been struggling to get this working, and looking through the
template
> and source, in my limited understanding it seems a bit broken...
>
> The issue arises when it's a set/collection mapping, with a type of
> java.lang.String.
>
> Orion generates the following:
>
> <cmp-field-mapping name="myCollection">
> <set-mapping table="myEJB_myCollection">
> <primkey-mapping>
> <cmp-field-mapping name="myField" persistence-name="myField"
/>
> </primkey-mapping>
> <value-mapping type="java.lang.String">
> <cmp-field-mapping name="value" persistence-name="value" />
> </value-mapping>
> </set-mapping>
> </cmp-field-mapping>
>
> In orion-cmp-mapping.j, there is a pushClass with the value being the
type
> parameter (in my case, java.lang.String). Then it does a
> forAllPersistentFields. Now, won't this always be empty for a String?
> Therefore, doesn't this mean that the set and collection mappings will
> ONLY
> work if the type is another EJB?
Well you set @orion:persistence type="java.lang.String" for the field
getter. So it will pushclass java.lang.String and try to iterate over
persistent fields of java.lang.String and it doesn't find anything and
no <cmp-field-mapping/> is generated. You were right. What we should do
is to put an if/else there:
<XDtType:ifIsOfType value="<XDtMethod:methodTagValue
tagName='orion:persistence' paramName='type'/>"
type="javax.ejb.EJBObject" extent="concrete-type">
merge as it is now
else ifIsNotOfType
<cmp-field-mapping blabla/>
I'm not interested in implementing it myself (and also test it), should
be very trivial for you (specially in IDEA and OS X) :o)
Anyway check out core/docs/ide/ there's a set of IDEA live templates
there for Xdoclet ;-)
Ara.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user