Hello:
I have two classes, CreditCard and Member.
CreditCard is dependent on Member.
When I feed the classes thru XDoclet, I am using this xml target in my ant
build
script:
<target name="xdoclet">
<taskdef name="ejbdoclet" classname="xdoclet.ejb.EjbDocletTask" />
<ejbdoclet sourcepath="${persistent}" destdir="${generated}">
<fileset dir="${persistent}">
<include name="Member.java" />
<include name="CreditCard.java" />
</fileset>
<castormapping destdir="${generated}" />
</ejbdoclet>
</target>
The generated mapping file has the CreditCard mapping
in it before the Member mapping. If I try to load the
mapping file into Castor, it failed when it reads the CreditCard
mapping saying that it can't find the Member object.
But, if I manually edit the mapping file and move the
Member mapping before the CreditCard mapping, everything
works OK.
So, it seems that Castor requires an ordering of the mappings
for dependent objects to be after the object they depend on.
Is there a way to tell XDoclet what order it should use
when generating the mappings?
Thanks,
Neil.
--
Neil Aggarwal
JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development Websites, Ecommerce, Java, databases
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user