commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester XMLIntrospectorHelper.java
Date Thu, 07 Nov 2002 15:31:38 GMT
jstrachan    2002/11/07 07:31:37

  Modified:    betwixt/src/java/org/apache/commons/betwixt/digester
                        XMLIntrospectorHelper.java
  Log:
  Patch to treat the SQL Date, Time and Timestamp types as primitive types
  
  Revision  Changes    Path
  1.8       +4 -1      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java
  
  Index: XMLIntrospectorHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/digester/XMLIntrospectorHelper.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XMLIntrospectorHelper.java	3 Nov 2002 15:01:23 -0000	1.7
  +++ XMLIntrospectorHelper.java	7 Nov 2002 15:31:37 -0000	1.8
  @@ -419,7 +419,10 @@
           return type.getName().startsWith( "java.lang." )
               || type.isAssignableFrom( Number.class ) 
               || type.isAssignableFrom( String.class ) 
  -            || type.isAssignableFrom( Date.class );
  +            || type.isAssignableFrom( Date.class ) 
  +            || type.isAssignableFrom( java.sql.Date.class ) 
  +            || type.isAssignableFrom( java.sql.Time.class ) 
  +            || type.isAssignableFrom( java.sql.Timestamp.class );
       }
       
       // Implementation methods
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message