读书人

ibatis mysql 字段 tinyint(1) 地图应

发布时间: 2012-09-10 22:20:13 作者: rapoo

ibatis mysql 字段 tinyint(1) map应用要小心

http://www.mysqlab.net/docs/refman/en-5.1/page/connector-j-reference-type-conversions.html

?

MySQL Type NameReturn value of GetColumnClassNameReturned as Java ClassBIT(1) (new in MySQL-5.0)BITjava.lang.BooleanBIT( > 1) (new in MySQL-5.0)BITbyte[]TINYINTTINYINTjava.lang.Boolean if the configuration property tinyInt1isBit is set to true (the default) and the storage size is 1, or java.lang.Integer if not.

读书人网 >Mysql

热点推荐