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-branches12x.patch
        0.8 kB
        Donald Woods
      2. OPENJPA-898-branches13x.patch
        0.8 kB
        Donald Woods
      3. OPENJPA-898-branches10x.patch
        0.8 kB
        Donald Woods

        Activity

        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
        Hide
        Donald Woods added a comment -

        adding target Fix Versions

        Show
        Donald Woods added a comment - adding target Fix Versions
        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.
        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.
        Hide
        Donald Woods added a comment -

        patch for 1.3.x

        Show
        Donald Woods added a comment - patch for 1.3.x
        Hide
        Donald Woods added a comment -

        patch for 1.0.x

        Show
        Donald Woods added a comment - patch for 1.0.x
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development