| Hi When using the greaterThan function on the criteriaBuilder, we get a ; Caused by: java.lang.NumberFormatException: For input string: "9223372036854775808" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:596) at java.lang.Long.valueOf(Long.java:803) at org.hibernate.hql.internal.ast.util.LiteralProcessor.determineIntegerRepresentation(LiteralProcessor.java:245) From what I've seen, the criteriaBuilder will produce a Hql Statement and then Hibernate will parse it, but the parser consider the minus like a token and not the sign of the value. For so, a Long.parse of the absolute value of the literal is executed, and due to the range not being symetric (-x,+x), the min value will never been usable with the criteriaBuilder |