db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer RowReaderDefaultImpl.java
Date Tue, 25 Oct 2005 23:46:06 GMT
arminw      2005/10/25 16:46:06

  Modified:    src/java/org/apache/ojb/broker/accesslayer Tag:
                        OJB_1_0_RELEASE RowReaderDefaultImpl.java
  Log:
  allow field conversion for discriminator column
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.30.2.9  +3 -1      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java
  
  Index: RowReaderDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java,v
  retrieving revision 1.30.2.8
  retrieving revision 1.30.2.9
  diff -u -r1.30.2.8 -r1.30.2.9
  --- RowReaderDefaultImpl.java	9 Oct 2005 23:49:53 -0000	1.30.2.8
  +++ RowReaderDefaultImpl.java	25 Oct 2005 23:46:06 -0000	1.30.2.9
  @@ -267,6 +267,8 @@
           try
           {
               String result = (String) fld.getJdbcType().getObjectFromColumn(rs, fld.getColumnName());
  +            // allow field-conversion for discriminator column too
  +            result = (String) fld.getFieldConversion().sqlToJava(result);
               result = result != null ? result.trim() : null;
               if (result == null || result.length() == 0)
               {
  
  
  

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


Mime
View raw message