Uploaded image for project: 'Hibernate ORM'
  1. HHH-8770

EntityManager.refresh(Object) not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects versions: 4.3.0.CR1
    • Fix versions: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      When invoking EntityManager.refresh(Object), the specified entity does not get refreshed wrt. the current database state.

      Setup for reproduction of this bug:

      1. Load an already existent entity via the entity manager
      2. Directly (not using the entity manager) change the row in the database table that corresponds to the in step 1 loaded entity.
      3. Call EntityManager.refresh on the in step 1 loaded entity
      4. The entity does not get refreshed with the value that has been set in step 2

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: