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);