Reputation: 753
In a JPQL query I compare a numeric constant to a bind parameter of type BigInteger (:param = 1). Is there any way to define that the constant type is a BigInteger in order to avoid IllegalArgumentException.
(:param = 1)
Upvotes: 0
Views: 265
Reputation: 118
Try using this:
:param = java.math.BigInteger.ONE
Upvotes: 1