I've been doing that in the meanwhile, and it seems that in the main template (orion.xdt) there is *no support* for relationship fields:
<primkey-mapping>
<XDtClass:ifDoesntHaveClassTag tagName="ejb.bean" paramName="primkey-field" superclasses="true">
<cmp-field-mapping>
<fields>
</XDtClass:ifDoesntHaveClassTag>
<XDtEjbPersistent:forAllPersistentFields only-pk="true">
<XDtMerge:merge file="xdoclet/modules/orion/ejb/resources/orion-cmp-mapping.xdt">
</XDtMerge:merge>
</XDtEjbPersistent:forAllPersistentFields>
<XDtClass:ifDoesntHaveClassTag tagName="ejb.bean" paramName="primkey-field" superclasses="true">
</fields>
</cmp-field-mapping>
</XDtClass:ifDoesntHaveClassTag>
</primkey-mapping>
<XDtEjbPersistent:forAllPersistentFields not-pk="true">
<XDtMerge:merge file="xdoclet/modules/orion/ejb/resources/orion-cmp-mapping.xdt">
</XDtMerge:merge>
</XDtEjbPersistent:forAllPersistentFields>
From my (still short) knowledge about templates, it seems in the case of orion (and oc4j) they are processing all the persistent fields but are completely ignoring relationship fields (there is no XDtEjbRel:forAllRelationships in the template). Am I right? Shouldn't this be a bug? Does anybody have a valid template for orion/OC4J?
Thanks, regards Jose
Harkness, David wrote:
Often the docs are out-of-date with the tags in the templates. Check out the Orion .xdt template files to see which tags are really supported. I did this with WebLogic (search for WL-specific XML entities) to find some that weren't documented. There were some that weren't implemented, and it actually turned out to be fairly easy to add support to the .xdt files, using the templates as a starting point.
David Harkness Sony Pictures Digital Networks (310) 482-4756
-----Original Message-----
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] XDoclet support for orion/OC4J
Hi there,
I'm evaluating the use of xdoclet for a project intended to run on an OC4J server, using EJBs with CMP. I've been trying to create my first
EJBs, but when I try to generate the orion-ejb-jar.xml I'm getting a lot
of troubles. It seems that the support for orion/OC4J is very basic, and
there is no tag to control mapping of relationships. so I'm not able to generate the file the way I want. Am I missing anything? Maybe there are
some undocumented tags related to this stuff?
Regards Jose
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
