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

CacheStoreMode.REFRESH is not recognized for entity manager refresh operation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: datacache
    • Labels:
      None

      Description

      Specifying the "javax.persistence.cache.storeMode" property with value CacheStoreMode.REFRESH does not refresh the contents of the L2 cache when used with the em.refresh(entity, props) operation.

      OPENJPA-1578 corrected this a similar issue for the em.find() operation, but not em.refresh(). A simple port of the changes from 1578 (which simply configure the store mode in the fetch plan) to the refresh operation did not correct the problem. It appears that more work needs to be done in the underlying refresh logic to produce a cache refresh.

        Attachments

        1. OPENJPA-1884-jUnit.patch
          5 kB
          Jeremy Bauer
        2. OPENJPA-1884.patch
          14 kB
          Jeremy Bauer

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: