The following issue has been updated: Updater: Jeff Brown (mailto:[EMAIL PROTECTED]) Date: Thu, 10 Mar 2005 9:08 AM Comment: Attaching patch. Changes: Attachment changed to jdoDependentElementPatch.diff --------------------------------------------------------------------- For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1293?page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1293 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1293 Summary: jdo dependent-element attribute Type: New Feature Status: Open Priority: Major Original Estimate: 30 minutes Time Spent: Unknown Remaining: 30 minutes Project: XDoclet Components: JDO Module Assignee: xdoclet-devel (Use for new issues) Reporter: Jeff Brown Created: Wed, 9 Mar 2005 7:34 PM Updated: Thu, 10 Mar 2005 9:08 AM Description: Last night I found myself trying to generate jdo metadata that contains a collection whose values need to be marked with dependent-element, per latest JDO 2.0 spec. I found that xdoclet was not generating the attribute for me if I put the appropriate tag in my source file. A little digging brought me to find that an xdt file had not been updated with this attribute yet. I added a couple of lines the xdt file and it appears to be working for me as I would expect it to. I don't see a mechanism on this form to attach a patch so I am pasting the patch below. If after creating the issue I see a mechanism for attaching a file, I will do that. Index: modules/jdo/src/META-INF/xtags.xml =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/jdo/src/META-INF/xtags.xml,v retrieving revision 1.12 diff -b -u -r1.12 xtags.xml --- modules/jdo/src/META-INF/xtags.xml 21 Feb 2005 15:56:42 -0000 1.12 +++ modules/jdo/src/META-INF/xtags.xml 9 Mar 2005 16:37:01 -0000 @@ -220,6 +220,16 @@ <condition-description>Must be used with collection or array valued persistent field</condition-description> </parameter> <parameter type="bool"> + <name>dependent-element</name> + <usage-description> + The dependent-element property specifies whether the elements + of the collection are to be considered dependent on the owner + object. + </usage-description> + <mandatory>false</mandatory> + <condition-description>Must be used with collection valued persistent field</condition-description> + </parameter> + <parameter type="bool"> <name>embedded-element</name> <usage-description> The embedded-element property specifies whether the elements of a collection or array-valued persistent Index: modules/jdo/src/xdoclet/modules/jdo/resources/jdo_xml.package_class_field.xdt =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/jdo/src/xdoclet/modules/jdo/resources/jdo_xml.package_class_field.xdt,v retrieving revision 1.4 diff -b -u -r1.4 jdo_xml.package_class_field.xdt --- modules/jdo/src/xdoclet/modules/jdo/resources/jdo_xml.package_class_field.xdt 21 Feb 2005 15:56:42 -0000 1.4 +++ modules/jdo/src/xdoclet/modules/jdo/resources/jdo_xml.package_class_field.xdt 9 Mar 2005 16:22:42 -0000 @@ -63,6 +63,9 @@ <XDtField:ifHasFieldTag tagName="jdo.field" paramName="element-type"> element-type="<XDtField:fieldTagValue tagName="jdo.field" paramName="element-type" expandClassName="true"/>" </XDtField:ifHasFieldTag> + <XDtField:ifHasFieldTag tagName="jdo.field" paramName="dependent-element"> + dependent-element="<XDtField:fieldTagValue tagName="jdo.field" paramName="dependent-element" values="true,false" default="false"/>" + </XDtField:ifHasFieldTag> <XDtField:ifHasFieldTag tagName="jdo.field" paramName="embedded-element" values="true,false"> embedded-element="<XDtField:fieldTagValue tagName="jdo.field" paramName="embedded-element" values="true,false" default="true"/>" </XDtField:ifHasFieldTag> --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel