今天遇到一个问题:
12 10:54:15,741 INFO [LongType] could not read column value from result set: SETTLEMENT71_102_; Fail to convert to internal representation
2013-07-12 10:54:15,741 WARN [JDBCExceptionReporter] SQL Error: 17059, SQLState: null
2013-07-12 10:54:15,741 ERROR [JDBCExceptionReporter] Fail to convert to internal representation
====================================================================================
12 10:54:15,741 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
2013-07-12 10:54:15,742 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
2013-07-12 10:54:15,742 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
=====================================================================================
经查找 是因为数据库里的某个字段类型被更改 以至于实体类vo无法映射到数据库
贴出来 一是提醒自己 二是希望对大家有所帮助!