I am using Apache Camel framework of java in which I am fetching the data from oracle db with a column of type timestamp
. When I am trying to map this to variable of type java.util.Date
, it is throwing the following error mentioned.
Caused by: java.lang.IllegalArgumentException:
Could not find a suitable setter for property lastupdated as there isn't a setter method with same type oracle.sql.TIMESTAMP nor type conversion possible:
No type converter available to convert from type oracle.sql.TIMESTAMP to the required type java.util.Date with value "2022-11-16 19:04:27.067"
Can anyone help me with this?
I tried to use the following datatypes of java-
java.util.Date
oracle.sql.TIMESTAMP
java.sql.Timestamp
But still the error is same.