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 Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Linskey made changes -
        Fix Version/s 1.1.0 [ 12312344 ]
        Catalina Wei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.0 [ 12313102 ]
        Resolution Fixed [ 1 ]
        Hide
        Catalina Wei added a comment -

        fixed under r654626

        Show
        Catalina Wei added a comment - fixed under r654626
        Catalina Wei created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development