Mapping between BIGINT in Sql with BigInteger in Java
问题 We are facing some issue in which when we try to map BigInteger in Java with BigInt in sql, its value got changed. We also try to convert it to longValue before mapping but it also failing as long could not able to handle its value. We tried with toString() and it got worked but is their any other workaround apart from using toString() ? 回答1: Java's BigInteger does not correspond with SQL Server's bigint - despite the similar names they are almost completely different: In Java, BigInteger is