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

Allow comparison for VALUE(e) that maps to basic type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0-M3
    • query
    • None

    Description

      Single persisted entity x with embeddable e. e has a map of 3 pairs of Integer keys/values (1/100,2/200,3/300).

      This query should be allowed...
      SELECT e FROM entityTable x JOIN x.mapKeyIntegerEmbed e JOIN e.notMapKeyInteger i WHERE VALUE = 200

      OpenJPA complains that "identifier "i" in "VALUE" operator is not valid in conditional expression. Per JSR 317, section 4.4.4 this operator is optionally allowed.

      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: