mpoeschl    2002/06/13 11:43:30

  Modified:    src/templates/om ObjectWithManager.vm
  Log:
  fix loop in getPrimaryKey if there is none
  
  Revision  Changes    Path
  1.11      +2 -2      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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ObjectWithManager.vm      13 Jun 2002 18:09:15 -0000      1.10
  +++ ObjectWithManager.vm      13 Jun 2002 18:43:30 -0000      1.11
  @@ -1087,7 +1087,7 @@
        * returns an id that differentiates this object from others
        * of its class.
        */
  -    public ObjectKey getPrimaryKey() 
  +    public ObjectKey getPrimaryKey()
       {
   #if ($table.PrimaryKeys.size() == 1)
           return get${table.PrimaryKeys.get(0).JavaName}();
  @@ -1099,7 +1099,7 @@
       #end
           return comboPK;
   #else
  -        return getPrimaryKey();
  +        return null;
   #end
       }
   
  
  
  

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

Reply via email to