db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/transform XmlToData.java
Date Mon, 28 Jul 2003 11:10:11 GMT
henning     2003/07/28 04:10:10

  Modified:    src/generator/src/java/org/apache/torque/engine/database/transform
                        XmlToData.java
  Log:
  Column can be null, too
  
  Revision  Changes    Path
  1.6       +9 -1      db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/XmlToData.java
  
  Index: XmlToData.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/XmlToData.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XmlToData.java	28 Jul 2003 09:09:42 -0000	1.5
  +++ XmlToData.java	28 Jul 2003 11:10:10 -0000	1.6
  @@ -171,6 +171,14 @@
                   {
                       Column col = table
                           .getColumnByJavaName(attributes.getQName(i));
  +
  +                    if (col == null)
  +                    {
  +                        throw new SAXException("Column " 
  +                                + attributes.getQName(i) + " in table " 
  +                                + rawName + " unknown.");
  +                    }
  +                        
                       String value = attributes.getValue(i);
                       columnValues.add(new ColumnValue(col, value));
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message