Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 79 by
Leap...@gmail.com: 建议自动生成代码模块完善对MyBatis的支持
http://code.google.com/p/rapid-framework/issues/detail?id=79
新建问题前你可以搜索是否已经存在该问题或是查看google
group
rapid版本:4.0
好像新的mybatis要求mapper中对于允许为空的字段,必须注明jdbcType,例如:
#{email,jdbcType=VARCHAR} ,
否则在增加、修改数据时会出现错误:
### Error updating database. Cause: org.apache.ibatis.type.TypeException:
Error setting null parameter. Most JDBC drivers require that the JdbcType
must be specified for all nullable parameters. Cause:
java.sql.SQLException: 无效的列类型: 1111
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### Cause: org.apache.ibatis.type.TypeException: Error setting null
parameter. Most JDBC drivers require that the JdbcType must be specified
for all nullable parameters. Cause: java.sql.SQLException: 无效的列类型:
1111
建议完善这部分的支持。
另外发现在最近好长时间rapid都没有代码更新了,很是担心,希望作者能坚持下去。