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

LEFT JOIN FETCH not honored when data cache is enabled

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In a simple JPQL with left join fetch for a lazy loaded association specified and data cached enabled, first time the query executed, the lazy loaded association get loaded, returned and cached. Subsequent invocation of the same query does NOT "load" and return the association from the query invocation.

      I'll attach a test case to reproduce the problem.

      Attachments

        1. OPENJPA-2508.test.zip
          3 kB
          Albert Lee
        2. OPENJPA-2508.221x.patch
          30 kB
          Albert Lee
        3. qcsq.v2.patch
          5 kB
          Albert Lee

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jpaheath Heath Thomann
            allee8285 Albert Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment