OpenJPA
  1. OpenJPA
  2. OPENJPA-875 OpenJPA 2.0 iteration 4 primary task
  3. OPENJPA-879

JPA2 Query support for general and qualified identification variable

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      support query syntax of followings in path expressions :
      1. Key(identifier)
      2. Value(identifier)
      3. Entry(identifier)

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1m 6s 1 Catalina Wei 29/Jan/09 18:12
        In Progress In Progress Resolved Resolved
        35d 30m 1 Catalina Wei 05/Mar/09 18:43
        Resolved Resolved Closed Closed
        368d 23h 47m 1 Donald Woods 09/Mar/10 18:31
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Catalina Wei made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 12313483 ]
        Resolution Fixed [ 1 ]
        Hide
        Catalina Wei added a comment -

        Code committed in revision r750517 supports general/qualified identification variables appear in selections:

        examples:
        select KEY(e) from PhoneNumber p, in (p.emps) e

        select ENTRY(e) from PhoneNumber p, in (p.emps) e

        select VALUE(e) from PhoneNumber p, in (p.emps) e

        in which emps is a relation field of java type Map<K,V> .

        JPA2 JPQL syntax allows qualified identification variables to appear in single_valued_path_expression, which implies that
        KEY(e) and VALUE(e) can be used to as a path and also can be further navigated to its fields or relations. Those support will be added in iteration 5.

        More testcases will be added to cover additional annotations using @MapKeyClass and @MapKeyJoinColumns.

        Show
        Catalina Wei added a comment - Code committed in revision r750517 supports general/qualified identification variables appear in selections: examples: select KEY(e) from PhoneNumber p, in (p.emps) e select ENTRY(e) from PhoneNumber p, in (p.emps) e select VALUE(e) from PhoneNumber p, in (p.emps) e in which emps is a relation field of java type Map<K,V> . JPA2 JPQL syntax allows qualified identification variables to appear in single_valued_path_expression, which implies that KEY(e) and VALUE(e) can be used to as a path and also can be further navigated to its fields or relations. Those support will be added in iteration 5. More testcases will be added to cover additional annotations using @MapKeyClass and @MapKeyJoinColumns.
        Catalina Wei made changes -
        Catalina Wei made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Catalina Wei made changes -
        Field Original Value New Value
        Assignee Catalina Wei [ fancy ]
        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