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
  1. 0

    Error When writing Hibernate HQL

    Stack Overflow | 6 years ago | Noor
    org.hibernate.QueryException: could not resolve property: Auction of: com.BiddingSystem.Models.Bid [From com.BiddingSystem.Models.Bid bid where bid.Auction.AuctionId=3655 and bid.User.UserId=3657]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Exception in selecting values from database

    Stack Overflow | 4 years ago | Vivek Shankar
    org.hibernate.QueryException: could not resolve property: userid of: org.gov.tnwrd.entity.Barragedetail [ FROM org.gov.tnwrd.entity.Eimsuser eu,org.gov.tnwrd.entity.Barragedetail bd where eu.usercode = bd.userid]
  4. 0

    org.hibernate.QueryException: could not resolve property: company of: Party [from Party party where party.company.name = :companyName]

    Stack Overflow | 2 years ago | Angel
    org.hibernate.QueryException: could not resolve property: company of: Party [from Party party where party.company.name = :companyName]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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