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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.1.0
    • None
    • 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

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

          People

            curtisr7 Richard G. Curtis
            curtisr7 Richard G. Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment