hibernate错误:IllegalArgumentException以及Could not execute JDBC batch update
来源:互联网 发布:怎么改淘宝店铺所在地 编辑:程序博客网 时间:2024/05/22 05:33
首先第一种错误:org.hibernate.PropertyAccessException: IllegalArgumentException occurred while calling setter of redwine.vo.WineUser.id
通过异常信息可以看出来是非法的属性。提示非法的属性,通过查看实体类中属性和配置文件,发现实体类中属性被我修改过,但是其中的setter方法还没有修改过来,所以系统找不到,也就非法了。
第二种错误:Could not execute JDBC batch update
通过上网查看据说有很多种可能,大部分就是配置文件的问题啦,通过查看实体类和hibernate的配置文件,突然意识到它们的属性名称可能和数据库中的关键字有冲突,然后就把这些属性就重新命名了一下,然后,轻松解决,看起来以后还是要小心实体类中属性的命名问题了。
这些都是自己不小心出的错,出现这种错误还有其他错误,希望慢慢遇吧!
0 0
- hibernate错误:IllegalArgumentException以及Could not execute JDBC batch update
- Hibernate:Could not execute JDBC batch update 以及Hibernate:NO database selected
- Hibernate抛异常Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- Hibernate flushing: Could not execute JDBC batch update;
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- 调试技巧之调用堆栈
- Cocos2d-x CocosBuilder使用教程(二)连接自定义类
- TWO device
- vpn刚开始学习的总结
- ios7.1 dropBox解决方案
- hibernate错误:IllegalArgumentException以及Could not execute JDBC batch update
- leetcode:Longest Substring Without Repeating Characters
- 【学以致用】Quartus II tab隐藏恢复
- locale source
- 我的第一个lamp网站 感人故事网 上线了
- QTabWidget添加关闭子标签功能
- XML - XPath
- LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- Because I Love You