sql数据类型 bigint和java.lang.Long类型无法对应?
数据库定义id为bigint类型
实体类定义id为Long类型
利用hibernate进行实体映射
查询时报错:rg.hibernate.property.BasicPropertyAccessor - IllegalArgumentException in class: XXX.XXX.XXX.XXX.XXX.XXX setter method of property: id
2012-11-06 16:14:51,671 [http-8080-2] ERROR org.hibernate.property.BasicPropertyAccessor - expected type: java.lang.Long, actual value: java.math.BigInteger
这是怎么回事啊 ?和sql语句有关么 查询的时候是调用SQLQuery进行查询的 求解!