Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-339

Correct the order of outlet and mergepoint in the last example of the configuration section of the code generation documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0
    • Documentation
    • None
    • Patch

    Description

      When overriding a single mergepoint, the outlet must be listed first according to the schema definition. The following patch addresses that:

      Index: torque-site/src/site/xdoc/documentation/codegen-reference/configuration.xml
      ===================================================================
      --- torque-site/src/site/xdoc/documentation/codegen-reference/configuration.xml	(revision 1689921)
      +++ torque-site/src/site/xdoc/documentation/codegen-reference/configuration.xml	(working copy)
      @@ -294,14 +294,14 @@
       <outlets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://db.apache.org/torque/4.0/generator/configuration http://db.apache.org/torque/4.0/generator/configuration.xsd"
           xmlns="http://db.apache.org/torque/4.0/generator/configuration">
      -  <mergepoint name="torque.om.bean.base.getterSetter.setter">
      -    <action xsi:type="applyAction" outlet="torque.om.bean.base.setter2"/>
      -  </mergepoint>
      -
         <outlet name="torque.om.bean.base.setter2"
             xsi:type="velocityOutlet"
             path="bean/base/setter2.vm">
         </outlet>
      +
      +  <mergepoint name="torque.om.bean.base.getterSetter.setter">
      +    <action xsi:type="applyAction" outlet="torque.om.bean.base.setter2"/>
      +  </mergepoint>
       </outlets>
       ]]></source>
             <p>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            helgew Helge Weissig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: