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次才报了这个错