db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model TypeMap.java
Date Tue, 09 Dec 2003 02:00:02 GMT
dlr         2003/12/08 18:00:02

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        TypeMap.java
  Log:
  * src/generator/src/java/org/apache/torque/engine/database/model/TypeMap.java
    getTorqueType(Integer): Corrected wording in JavaDoc and improved
    the logging output.
  
  Revision  Changes    Path
  1.6       +4 -3      db-torque/src/generator/src/java/org/apache/torque/engine/database/model/TypeMap.java
  
  Index: TypeMap.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/TypeMap.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -u -r1.5 -r1.6
  --- TypeMap.java	5 Dec 2003 15:57:25 -0000	1.5
  +++ TypeMap.java	9 Dec 2003 02:00:02 -0000	1.6
  @@ -580,7 +580,7 @@
   
       /**
        * Returns Torque type constant corresponding to JDBC type code.
  -     * Used but Torque JDBC task.
  +     * Used by the Torque JDBC task.
        *
        * @param sqlType the SQL type
        * @return Torque type constant
  @@ -595,8 +595,9 @@
           SchemaType st = (SchemaType) jdbcToTorqueTypeMap.get(sqlType);
           if (st == null)
           {
  -            log.warn("SchemaType for JdbcType " + sqlType + " is not defined");
               st = SchemaType.VARCHAR;
  +            log.warn("SchemaType for JdbcType '" + sqlType +
  +                     "' is not defined: Defaulting to '" + st + '\'');
           }
           return st;
       }
  
  
  

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