您的位置:首页 > 其它

细节错误

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次才报了这个错
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: