org.apache.ibatis.exceptions.IbatisException:
### Error updating database. Cause: org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'IDENTREPRISE' of 'com.entity.Entreprise@10ab09f' with value '30' Cause: java.lang.IllegalArgumentException: argument type mismatch
### The error may exist in com/sql/entreprise_SqlMap.xml
### The error may involve com.sql.EntrepriseMapper.insertEntreprise!selectKey-Inline
### The error occurred while handling result set
### SQL: SELECT LAST_INSERT_ID() AS value
### Cause: org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'IDENTREPRISE' of 'com.entity.Entreprise@10ab09f' with value '30' Cause: java.lang.IllegalArgumentException: argument type mismatch
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:88)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:74)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:41)
Partager