java.lang.IllegalArgumentException: Unaware how to convert value [250000000 : java.lang.Long] to requested type [java.lang.Number]

Hibernate JIRA | Jens Rydholm | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Unaware how to convert value [250000000 : java.lang.Long] to requested type [java.lang.Number]

      at org.hibernate.ejb.criteria.ValueHandlerFactory.unknownConversion()
    2. Hibernate EJB
      CriteriaBuilderImpl.ge
      1. org.hibernate.ejb.criteria.ValueHandlerFactory.unknownConversion(ValueHandlerFactory.java:259)
      2. org.hibernate.ejb.criteria.ValueHandlerFactory.convert(ValueHandlerFactory.java:287)
      3. org.hibernate.ejb.criteria.predicate.ComparisonPredicate.<init>(ComparisonPredicate.java:88)
      4. org.hibernate.ejb.criteria.CriteriaBuilderImpl.ge(CriteriaBuilderImpl.java:534)
      4 frames