细节错误
2015-12-16 17:14
141 查看
10:24:48,177 ERROR JDBCExceptionReporter:101 - Column 'cardtype' specified twice
org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert: [com.dz.business.bs.domain.Mtimecard]; SQL [insert into m_timecard (cardType, cardtype, comments, employeeid, employeename, employeetype, limiteddate,
rfidcardid, title) values (?, ?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [com.dz.business.bs.domain.Mtimecard]
原因:
创建实体类时无意将'cardtype'该属性的get、set方法写了2次才报了这个错
org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert: [com.dz.business.bs.domain.Mtimecard]; SQL [insert into m_timecard (cardType, cardtype, comments, employeeid, employeename, employeetype, limiteddate,
rfidcardid, title) values (?, ?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [com.dz.business.bs.domain.Mtimecard]
原因:
创建实体类时无意将'cardtype'该属性的get、set方法写了2次才报了这个错
相关文章推荐
- 《多线程之NSOPeration/NSOperationQueue》
- 一个App的界面设计流程是怎么产生的
- OpenCV 实践程序17——实现图片标注
- 请务必注意 Redis 安全配置,否则将导致轻松被入侵
- Android应用开发:页面跳转和数据传递
- 性能调优之mysql通过status性能优化 4
- Storm DRPC实现机制分析剖析
- esxi+vcenter6.0+sql2008安装手册+排错
- [BZOJ1010][HNOI2008]玩具装箱toy 斜率优化第一题
- hbase跨版本导数
- Qt头文件包含问题
- LeetCode --- House Robber & House Robber II
- 数据分页处理系列之二:HBase表数据分页处理
- iOS二维码的生成与识别
- 转战Android Studio 二
- 模板双向链表
- win8.1系统电脑如何开启远程登录服务?win8.1系统开启远程登录服务的设置教程
- 用eclipse进行系统开发资料整理
- Android开发笔记(二十)顶部导航栏ActionBar
- 迅为4412开发板平台-嵌入式开源平台