org.hibernate.QueryException: Could not format constant value to SQL literal: bug.TestEnum.VALUE [FROM bug.TestEntity t WHERE t.testEnum = bug.TestEnum.VALUE]

Hibernate JIRA | Oleg Ivanov | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. org.hibernate.QueryException

      Could not format constant value to SQL literal: bug.TestEnum.VALUE [FROM bug.TestEntity t WHERE t.testEnum = bug.TestEnum.VALUE]

      at org.hibernate.QueryException.generateQueryException()
    2. Hibernate
      QueryException.wrapWithQueryString
      1. org.hibernate.QueryException.generateQueryException(QueryException.java:137)
      2. org.hibernate.QueryException.wrapWithQueryString(QueryException.java:120)
      2 frames