org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch
来源:互联网 发布:外螺纹编程 编辑:程序博客网 时间:2024/05/22 12:35
hibernate使用数据库采用MySQL的一个麻烦的问题,起初一看必定认为是自己的HQL写的有问题,但是事实并非如此
。。。其实是万恶的Mysql中的关键字再作怪。desc。。。作为Mysql的关键字和数据库表中的字段冲突了,导致无法执行HQL,
在此奉上解决方法:如果用hibernate注解的话,实体类set方法时:加上``也就是TAB按钮上面那个键。
`desc`;关键就是这样。
- org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch
- org.springframework.dao.DataIntegrityViolationException Could not execute JDBC batch update
- org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- ssh org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; neste
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert:
- org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested
- org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested
- [hibernate]:org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hi
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hibernate.exce
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not get next sequence value
- C++中union的使用
- Fedora14 i386下 使用Intel编译器 安装WRF指南
- SQL Server 2005实现负载均衡
- 双机热备、双机互备与双机双工的区别
- diff between Context.getResources().getString() and Context.getString()
- org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch
- sort 排序类类型对象。。
- 【Android】Activity 的 Title 中加入进度条
- Java多线程之同步与死锁
- 全文索引---新手入门(三)
- D3D或OpenGL GDI+的双缓冲技术
- 绘制条形码
- XHTML声明
- voiceXML voiceglue install