OpenJPA
  1. OpenJPA
  2. OPENJPA-2007

Setting query hint "openjpa.FetchPlan.Isolation" results in misleading warning

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1, 2.1.0, 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      Setting query hint "openjpa.FetchPlan.Isolation" on a query results in this misleading warning being printed in the log:

      WARN [main] openjpa.Runtime - "openjpa.FetchPlan.Isolation" is not a supported query hint. May be you meant "openjpa.FetchPlan.LRSSize"?

      The supported hint map in JDBCPersistenceProductDerivation adds key openjpa.FetchPlan.TransactionIsolation, which is incorrect. It should be adding openjpa.FetchPlan.Isolation instead.

      Note: Even though a warning is issued, provided the database supports query-level isolation level switching, the hint handler does apply the isolation level to the query.

        Activity

        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Albert Lee added a comment -

        Close issue in preparation for 2.2.0 release.

        Show
        Albert Lee added a comment - Close issue in preparation for 2.2.0 release.
        Jeremy Bauer made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2.0 [ 12315910 ]
        Resolution Fixed [ 1 ]
        Hide
        Jeremy Bauer added a comment -

        Fixed in trunk.

        Show
        Jeremy Bauer added a comment - Fixed in trunk.
        Hide
        Jeremy Bauer added a comment -

        Still working on a jUnit for this issue. It is quirky since the behavior change is primarily the absence of a warning in the log.

        Show
        Jeremy Bauer added a comment - Still working on a jUnit for this issue. It is quirky since the behavior change is primarily the absence of a warning in the log.
        Jeremy Bauer created issue -

          People

          • Assignee:
            Jeremy Bauer
            Reporter:
            Jeremy Bauer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development