我在MySQL中有一个id字段类型为BIGINT的表
在hibernate对象中,我使用java Long类型来表示这个字段
但是当运行程序时,它抛出异常: Expected: class java.lang.Long, got class java.lang.Integer
Expected: class java.lang.Long, got class java.lang.Integer
如何在hibernate中映射MySQL BINGINT数据类型?
java mysql hibernate
hibernate ×1
java ×1
mysql ×1