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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    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