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"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.1.0, 1.2.0
    • Component/s: query
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: