could not execute query; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query
SQL state [99999]; error code [17059]; could not execute query; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query
这个问题是 数据库里的字段类型与Java里映射该字段属性的类型不能对应转换,无法把hibernate配置文件转换成数据库中对应表的信息,一般是数据库表字段属性写错了,或者是映射文件中写错了。
.查看自己建的对象
我发现我建的对象的属性中,st_com_ct这个属性是String类型,但是在检表语句里面定义的st_com_ct这个字段是Integer类型,这里就存在转换问题了。