
SSH
失业找工作中
it小白的学习笔记,加油!
展开
-
check the manual that corresponds to your MySQL server version for the right syntax错误
昨天晚上,用Hibernate做多对多映射,然后测试,结果直接报check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order (moneys, orderNumber) values (0.0, 'A001')'。晚上检查半天都没检查出来,后来就和女票出去...原创 2018-07-06 15:07:34 · 536 阅读 · 0 评论 -
The given object has a null identifier解决办法
这个错误常出现在SSH整合的时候,修改时候主键没有传递 或者name属性指定错误。因为你操作的对象的主键不存在,所以hibernate 不知道更新的是谁。解决方案:你要把你的更新的对象的主键传过去,...原创 2018-08-08 15:45:43 · 7802 阅读 · 0 评论 -
解决a different object with the same identifier value was already associated with the session错误
1、a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。 解决方法一:session.clean() PS:如果在clean操作后面又进行了saveOrUpdate...原创 2018-08-08 17:04:21 · 2874 阅读 · 0 评论