Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-595

An error occurred while parsing the query filter "SELECT t FROM PessimisticA t WHERE t.id = ?1". Error message: No field named "id" in class "t"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.1.0, 1.2.0
    • query
    • None

    Description

      A common path() action in JPQL.jjt being used for Enum literal causes a simple aliase resolution to fail in
      org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "SELECT t FROM PessimisticA t WHERE t.id = ?1". Error message: No field named "id" in class "t".

      This could happen in an environment where there is a "t" class visible in the classpath.

      Attachments

        Activity

          People

            fancy Catalina Wei
            fancy Catalina Wei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: