On 02/06/2002 12:08:07 PM -0500, Adam Sherman wrote:
> If java.sql.Timestamp is a subclass of java.util.Date, how come my class
> that has a Date field cause a ClassCastException?
>
> My mapping is type="timestamp" both for field and sql, should the field
> type be something else?

I'm getting good at anwsering my own questions:

field type should be "date", sql type should be "timestamp". Castor JDO 
does the Right Thing(tm) and everything is good.

Thanks,

A.

-- 
Adam Sherman
President & Chief Technologist
Tritus Consultant Group Inc.
+1 (613) 255-5164

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to