Hello,
how can I mapp an interval (hour to minute) to java.time.duration from a 
result set?

So, I have a column with data type  INTERVAL HOUR (3) TO MINUTE.

And now I want to mapp it into java.time.Duration when the ResultSet is 
processed

Something like:
ResultSet results = createStatement().executeQuery(SELECT overtime FROM 
table_x)

Duration x = results.get <- what I have to do here.
Duration x = (Duration) results.getObject(1) throws
org.h2.api.Interval cannot be cast to java.time.Duration

Thank yu for your help.

Roland

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/439c47d2-eb3e-4f20-a294-7259ebed14c9%40googlegroups.com.

Reply via email to