You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sujay Bawaskar <su...@gmail.com> on 2018/01/02 17:08:46 UTC

Camel JDBC producer custom type converter

Hi,

Is there any way to get particular column from result set into a specific
type?

For example I need to get timestamp stored in postgresql as below, but I am
getting this object as java.sql.Timestamp.

resultSet.getObject( "date", OffsetDateTime.class )

Another issue is with outputClass parameter, can we have field specific
type conversion?

-- 
Thanks,
Sujay P Bawaskar
M:+91-77091 53669