一月 30, 2015 4:42:49 下午 org.hibernate.jdbc.util.SQLStatementLogger logStatement
FINE: select callId,preSales,afterSales,brandCode,terraceId from t_lz_callus t
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '2' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: afterSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: brandCode
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: terraceId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '4' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: afterSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '2' as column: brandCode
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: terraceId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '5' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8889' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8889' as column: afterSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '3' as column: brandCode
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: terraceId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '6' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-862-8888' as column: afterSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '4' as column: brandCode
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: terraceId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '7' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-813-8886' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '400-813-8886' as column: afterSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '5' as column: brandCode
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: terraceId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '8' as column: callId
一月 30, 2015 4:42:49 下午 org.hibernate.type.NullableType nullSafeGet
FINEST: returning '1' as column: preSales
一月 30, 2015 4:42:49 下午 org.hibernate.type.Null
日志中出现大量的这样的日志,,,只要写hql语句,就会报这样的日志,数据库是varchar 实体类是string ,mysql 数据库。很简单的问题,尝尽了各种办法,期待高手给个解决办法。
应该是你的映射文件和数据库表结构不同步造成的。
我要的是解决方案,和数据库的映射没问题。是驱动包和hibernate的版本问题。谢谢了。