我有Hibernate映射如下:休眠:通用JDBC異常 - 錯誤格式的時間 '838:59:59'
<property formula="(Timediff(ifnull(sttime,now()),sstime))" insert="false" name="duration" update="false" />
where sstime is of type Timestamp
這裏這個公式返回此格式的一些值 「838:59:59」從我的數據。
我得到了異常,當我試圖加載'持續時間'字段,它具有'java.sql.Time'類型的值,它給了我這個例外。
"Generic JDBC exception - Bad format for Time '838:59:59'"
什麼是數據庫? – 2013-03-12 11:24:51
我正在使用MySql。 – 2013-03-12 11:29:13
相似問題:http://stackoverflow.com/questions/13733148/surpassing-mysqls-time-value-limit-of-8385959 – Shashi 2013-03-12 11:32:46