org.hibernate.QueryException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web12

  • Stack trace

    • 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(QueryException.java:137) at org.hibernate.QueryException.wrapWithQueryString(QueryException.java:120)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    nasimknasimk
    8 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,