控制臺輸出SQL語句了,但是執(zhí)行到transaction.commit();會出現(xiàn)報錯。javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute statement
控制臺輸出SQL語句了,但是執(zhí)行到transaction.commit();會出現(xiàn)報錯。javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute statement
2019-08-30
我也是同樣的錯誤,在數(shù)據(jù)庫中可以生成表,但是沒有保存數(shù)據(jù),沒有執(zhí)行語句
2018-05-22
看下第一個Error信息:incorrect data value: '' for column 'birthday' at row 1. 就是插入的數(shù)據(jù)格式不符表字段的定義
貼出代碼來看一下