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

hints don't work for NamedNativeQuery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0, 2.0.0-M2
    • None
    • 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-branches13x.patch
          0.8 kB
          Donald Woods
        2. OPENJPA-898-branches12x.patch
          0.8 kB
          Donald Woods
        3. OPENJPA-898-branches10x.patch
          0.8 kB
          Donald Woods

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: