stephenh    2002/08/28 21:59:32

  Modified:    src/templates/om ObjectWithManager.vm Object.vm
               src/conf default.properties
  Log:
  Added quick fix of torque.saveException = Exception/TorqueException until the 
TorqueRuntimeException option can be fully considered and implemented.
  
  Revision  Changes    Path
  1.24      +1 -1      jakarta-turbine-torque/src/templates/om/ObjectWithManager.vm
  
  Index: ObjectWithManager.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/ObjectWithManager.vm,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ObjectWithManager.vm      1 Aug 2002 16:51:38 -0000       1.23
  +++ ObjectWithManager.vm      29 Aug 2002 04:59:32 -0000      1.24
  @@ -882,7 +882,7 @@
        * Stores the object in the database.  If the object is new,
        * it inserts it; otherwise an update is performed.
        */
  -    public void save() throws Exception
  +    public void save() throws $saveException
       {
    #if ($complexObjectModel)
               save(${table.JavaName}Peer.getMapBuilder()
  
  
  
  1.46      +1 -1      jakarta-turbine-torque/src/templates/om/Object.vm
  
  Index: Object.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/Object.vm,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- Object.vm 1 Aug 2002 16:51:38 -0000       1.45
  +++ Object.vm 29 Aug 2002 04:59:32 -0000      1.46
  @@ -892,7 +892,7 @@
        * Stores the object in the database.  If the object is new,
        * it inserts it; otherwise an update is performed.
        */
  -    public void save() throws Exception
  +    public void save() throws $saveException
       {
    #if ($complexObjectModel)
               save(${table.JavaName}Peer.getMapBuilder()
  
  
  
  1.8       +1 -0      jakarta-turbine-torque/src/conf/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/conf/default.properties,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- default.properties        21 Aug 2002 17:33:14 -0000      1.7
  +++ default.properties        29 Aug 2002 04:59:32 -0000      1.8
  @@ -113,6 +113,7 @@
   torque.basePrefix = ${basePrefix}
   torque.complexObjectModel = ${complexObjectModel}
   torque.overloadKeySetters = ${overloadKeySetters}
  +torque.saveException = Exception
   torque.useClasspath = ${useClasspath}
   torque.useManagers = ${useManagers}
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to