I have a hibernation mapping as follows:
<property formula="(Timediff(ifnull(sttime,now()),sstime))" insert="false" name="duration" update="false" />
where sstime is of type Timestamp
here this formula returns some value in this format "838: 59: 59" from my data.
I got an exception when I try to load this value into the "Duration" field, which is of type "java.sql.Time", it gives me this exception.
"Generic JDBC exception - Bad format for Time '838:59:59'"
source
share