Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with java.sql.time type columns in objects

newToplinkUserOct 6 2008 — edited Oct 20 2008
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2008
Added on Oct 6 2008
6 comments
712 views