2013年8月14日 星期三

ORA-17059: Fail to convert to internal representation

could not read column value from result set 無法轉換為內部方式

這個錯誤原因是:資料庫裡的字段類型與Java裡映射該字段屬性的類型不能對應轉換,例如資料庫裡欄位類型為Varchar2,而Java定義的類型為Long;或者資料裡為Number,而Java定義的對應屬性類型為String。

處理*.hbm.xml大部份都能解決問題.

沒有留言: