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

hints don't work for NamedNativeQuery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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") }

      )

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: