org.hibernate.exception.GenericJDBCexception:could not insert

org.hibernate.exception.GenericJDBCexception:could not insert 初學hibernate出現這個錯誤,找了好久才找到的解決方法。 原來的表結構: 解決辦法: 將主鍵id設置成:AUTO_INCREMENT 修改後的表結構: 程序正常運行:
相關文章
相關標籤/搜索