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

Em.refresh(..) not refreshing from the DB when shared-cache-mode is set to ALL

    Details

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

      Description

      <shared-cache-mode>ALL</shared-cache-mode> doesn't play nicely with em.refresh(...).

      The following sequence doesn't work:

      • Persist an Entity.
      • Start a transaction.
      • Update that Entity via SQL UPDATE.
      • Commit the transaction.
      • Call em.refresh(..) on the persisted entity.

        Attachments

          Activity

            People

            • Assignee:
              curtisr7 Rick Curtis
              Reporter:
              curtisr7 Rick Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: