OpenJPA
  1. OpenJPA
  2. OPENJPA-898

hints don't work for NamedNativeQuery

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      Hints defined for a named native query such as the one below don't get loaded, however, if changed it to @NamedQuery, the hints get loaded.

      @NamedNativeQuery(name="GetMemberInfo",
      query="CALL MEMBERSUB",
      hints=

      { @QueryHint(name="openjpa.hint.u2sub.numberofpara", value="2"), @QueryHint(name="openjpa.hint.u2sub.output.para", value ="2") }

      )

      1. OPENJPA-898-branches10x.patch
        0.8 kB
        Donald Woods
      2. OPENJPA-898-branches12x.patch
        0.8 kB
        Donald Woods
      3. OPENJPA-898-branches13x.patch
        0.8 kB
        Donald Woods

        Activity

        Jianfeng Mao created issue -
        Hide
        Pinaki Poddar added a comment -

        Can you run the test with latest change and confirm if the hints are avaialble with NamedNativeQuery

        Show
        Pinaki Poddar added a comment - Can you run the test with latest change and confirm if the hints are avaialble with NamedNativeQuery
        Pinaki Poddar made changes -
        Field Original Value New Value
        Assignee Pinaki Poddar [ ppoddar@apache.org ]
        Pinaki Poddar made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Donald Woods added a comment -

        adding target Fix Versions

        Show
        Donald Woods added a comment - adding target Fix Versions
        Donald Woods made changes -
        Fix Version/s 1.2.1 [ 12313328 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12313483 ]
        Pinaki Poddar made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 1.2.1 [ 12313328 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0.0-M1 [ 12313624 ]
        Hide
        Donald Woods added a comment -

        Mike, please consider for the 1.2.x branch.

        Show
        Donald Woods added a comment - Mike, please consider for the 1.2.x branch.
        Donald Woods made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Pinaki Poddar [ ppoddar@apache.org ] Michael Dick [ mikedd ]
        Resolution Fixed [ 1 ]
        Hide
        Donald Woods added a comment -

        Two line addition to trunk back ported to 1.2.x for easier patching.

        Show
        Donald Woods added a comment - Two line addition to trunk back ported to 1.2.x for easier patching.
        Donald Woods made changes -
        Attachment OPENJPA-898-branches12x.patch [ 12400777 ]
        Hide
        Donald Woods added a comment -

        patch for 1.3.x

        Show
        Donald Woods added a comment - patch for 1.3.x
        Donald Woods made changes -
        Attachment OPENJPA-898-branches13x.patch [ 12400780 ]
        Hide
        Donald Woods added a comment -

        patch for 1.0.x

        Show
        Donald Woods added a comment - patch for 1.0.x
        Donald Woods made changes -
        Attachment OPENJPA-898-branches10x.patch [ 12400781 ]
        Hide
        Michael Dick added a comment -

        Some of the users of the 1.2.x and 1.0.x are conservative about changes, especially without a testcase. For now we'll resolve this issue in the released branches only.

        Show
        Michael Dick added a comment - Some of the users of the 1.2.x and 1.0.x are conservative about changes, especially without a testcase. For now we'll resolve this issue in the released branches only.
        Michael Dick made changes -
        Fix Version/s 2.0.0-M1 [ 12313624 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael Dick
            Reporter:
            Jianfeng Mao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development