db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/templates/om Object.vm
Date Sun, 23 Feb 2003 14:44:06 GMT
mpoeschl    2003/02/23 06:44:06

  Modified:    src/generator/src/templates/om Object.vm
  Log:
  add toString()
  
  Revision  Changes    Path
  1.2       +12 -0     db-torque/src/generator/src/templates/om/Object.vm
  
  Index: Object.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/om/Object.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Object.vm	10 Feb 2003 13:18:45 -0000	1.1
  +++ Object.vm	23 Feb 2003 14:44:06 -0000	1.2
  @@ -1488,4 +1488,16 @@
           return peer;
       }
   #end
  +
  +    public String toString()
  +    {
  +        StringBuffer str = new StringBuffer();
  +        str.append("$table.JavaName:\n");
  +      #foreach ($col in $table.Columns)
  +        str.append("$col.JavaName = ")
  +           .append(get${col.JavaName}())
  +           .append("\n");
  +      #end
  +        return(str.toString());
  +    }
   }
  
  
  

Mime
View raw message