Problem with java.sql.time type columns in objects
We have a field in the POJO of type java.sql.Time which is mapped as java.sql.Data in the DB, we are getting the following exception when we try to commit the changes in the DB
2008-10-03 14:45:41,488 ERROR Main Thread [Integral1@MAIN.MAIN] testPersistence
Database exception: Exception [TOPLINK-3002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.ConversionException
Exception Description: The object [1/1/70 12:00 AM], of class [class java.sql.Date], from mapping [oracle.toplink.mappings.DirectToFieldMapping[startTime-->IDCBROKADAPSTREAMSCHEDULE.STARTTIME]] with descriptor [RelationalDescriptor(com.integral.broker.model.StreamScheduleC --> [DatabaseTable(IDCBROKADAPSTREAMSCHEDULE)])], could not be converted to [class java.sql.Time]..
Is this a bug? any workarounds?