Added.
Thomas -----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Markus Fritz >Sent: Friday, November 09, 2001 8:01 AM >To: [EMAIL PROTECTED] >Subject: [castor-dev] BugFix: Timestamp type support > >Hi, > >i need Timestamp type fields and realized that this was not supported >yet. > >so i add java.sql.Timestamp to mapping/loader/Types.java (same as Date). > >should be causing no problems as it is the same as with java.util.Date >.... >First tests are OK. > >Can someone please commit that - diff appended > >Thanx, > > Markus Fritz > > >=================================================================== >diff -u -r1.40 Types.java >--- src/main/org/exolab/castor/mapping/loader/Types.java 1 Aug >2001 00:02:44 -0000 1.40 >+++ src/main/org/exolab/castor/mapping/loader/Types.java 9 Nov >2001 15:54:00 -0000 >@@ -166,6 +166,7 @@ > * <li>All primitive types > * <li>String > * <li>Date >+ * <li>Timestamp > * <li>byte/char arrays > * <li>BigDecimal > * </ul> >@@ -411,6 +412,8 @@ > java.lang.Byte.class, true, new Byte( >(byte) 0 ) ), > new TypeInfo( "date", null, > java.util.Date.class, true, null ), >+ new TypeInfo( "timestamp", null, >+ java.sql.Timestamp.class, true, null ), > new TypeInfo( "short", java.lang.Short.TYPE, > java.lang.Short.class, true, new Short( >(short) 0 ) ), > new TypeInfo( "char", java.lang.Character.TYPE, >=================================================================== > >-- >Dipl.-Ing. (FH) Markus Fritz [EMAIL PROTECTED] >Just Innovative Software GmbH * Heimsheimerstr. 1 * 70499 Stuttgart >Tel.: +49 (0)711 82 05 07 0 Fax: +49 (0)711 82 05 07 79 > >----------------------------------------------------------- >If you wish to unsubscribe from this mailing, send mail to >[EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
