OpenJPA
  1. OpenJPA
  2. OPENJPA-2183

Query hint "openjpa.hint.RelaxParameterTypeChecking" is reported to be unsupported and is ignored

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0, 2.1.1, 2.2.0
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None
    • Environment:
      Websphere 8.0.3, openjpa-2.1.2-SNAPSHOT-r422266:1227818
    • Patch Info:
      Patch Available

      Description

      Setting
      Query q = em.createQuery(qs);
      q.setHint("openjpa.hint.RelaxParameterTypeChecking", "true");
      results in
      Warn: "openjpa.hint.RelaxParameterTypeChecking" is not a supported query hint. May be you meant "openjpa.hint.ParameterMarkerInQuery"?

      I assume the reason is that the openjpa.hint.RelaxParameterTypeChecking hint is not supported by any ProductDerivation and thus being refused in org.apache.openjpa.persistence.HintHandler#record.

      1. OPENJPA-2183.patch
        0.7 kB
        Albert Lee
      2. OPENJPA-2183.WAS8.jar
        16 kB
        Albert Lee

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Peter Martinovic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development