More appropriate id's for useIDs option with websphere when meeting in the middle ---------------------------------------------------------------------------------
Key: XDT-1523 URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1523 Project: XDoclet Type: Improvement Components: IBM Module Environment: Websphere 6 / IRAD 6 Reporter: Spenk Assigned to: xdoclet-devel (Use for new issues) Priority: Minor When using "useIDs" to generate ejb-jar.xml, currently each cmp-field gets an id that contains an index. This ID looks as follows: "CMPAttribute_<XdtID>". After rerunning XDoclet, new indexes will be applied. This will mess up any references to the cmp-field, unless they are updated likewise. Unfortunately we are using a meet-in-the-middle approach with Websphere, which means the file map.mapxmi should remain fairly stable apart from new fields or renamed fields. I resolved this by generating a stable id as follows: <XDtEjbCmp:forAllCmpFields> <cmp-field id="CMPAttribute_<XDtEjb:ejbName/>_<XDtEjbCmp:fieldName/>"> <description><![CDATA[<XDtMethod:firstSentenceDescriptionOfCurrentMethod/>]]></description> <field-name><XDtEjbCmp:fieldName/></field-name> </cmp-field> </XDtEjbCmp:forAllCmpFields> My suggestion would be to support the meet-in-the-middle approach with a new attribute. Perhaps "useFixedIDs" would be nice add-on? -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel