org.hibernate.exception.GenericJDBCexception:could not insert

org.hibernate.exception.GenericJDBCexception:could not insert 初学hibernate出现这个错误,找了好久才找到的解决方法。 原来的表结构: 解决办法: 将主键id设置成:AUTO_INCREMENT 修改后的表结构: 程序正常运行:
相关文章
相关标签/搜索