Salon-sai / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

建议自动生成代码模块完善对MyBatis的支持 #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
新建问题前你可以搜索是否已经存在该问题或是查看google
group

rapid版本:4.0

好像新的mybatis要求mapper中对于允许为空的字段,必须注明jdbc
Type,例如:
#{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都没有代码更新了,很是担心,
希望作者能坚持下去。

Original issue reported on code.google.com by Leap...@gmail.com on 3 Aug 2011 at 8:01

GoogleCodeExporter commented 8 years ago
多谢鼓励.希望能坚持下去,发布一个版本.

Original comment by bad...@gmail.com on 3 Aug 2011 at 4:26