Monday, August 16, 2010

Number format exception with eclipse link JPQL IN clause

Eclipse link jpql IN clause can throw Number format exception even when number is valid.

JPQL:
"Select e from Entity e where e.id IN (4562859281)". This can throw number format exception, this is because of a limitation with JPQL. workaround is to use bind parameters.

No comments:

Post a Comment