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

saveMethods.vm has toSave.setNew instead of a using toSaveVariableWithDot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.0
    • 5.0
    • Templates
    • None

    Description

      When I generate classes with

      torque.om.addSaveMethods=true
      torque.om.saveMethodsInDbObjects=true

      The dbobjects won't compile because the line toSave.setNew(false) is not a variable. I updated the saveMethods.vm template to fix the issue with this:

      diff torque-templates-4.0-new/org/apache/torque/templates/om/templates/general/saveMethods.vm torque-templates-4.0-orig/org/apache/torque/templates/om/templates/general/saveMethods.vm
      65c65
      < ${toSaveVariableWithDot}setNew(false);

      > toSave.setNew(false);

      Attachments

        Activity

          People

            tfischer Thomas Fox
            rdecker Rob Decker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: