Ilias Stavrakis
Ilias Stavrakis

Reputation: 753

JPQL how to define BigInteger constants

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.

Upvotes: 0

Views: 265

Answers (1)

Yaroslav
Yaroslav

Reputation: 118

Try using this:

:param = java.math.BigInteger.ONE

Upvotes: 1

Related Questions