Hibernate一映射问题

当Mysql 5.0表数据类型设计为DECIMAL时,在spring,hibernate项目运行会出现246错误:
Unknown type '246 in column 4 of 11 in binary-encoded result set.; nested exception is java.sql.SQLException: Unknown type '246 in column 4 of 11 in binary-encoded result set.

刚开始还以为是程序有问题,后来才知道MYSQL5在decimal 类型有BUG,解决方法是更改数据类型。

你可能感兴趣的:(spring,sql,Hibernate,mysql)