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

EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta2
    • Fix Version/s: 2.0.0-beta3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X, OpenJPA 2.0.0-beta2, Spring 3.0

      Description

      My application unit tests turned up some unexpected behavior from basic OpenJPA entity manager functions. It appears, for instance, that a detached entity can still be refreshed. I decided to write a few basic tests (attached) which report five potential errors. This does not go into the testing of cascading behavior which would require additional work.

        Attachments

        1. simple_entity_tests.txt
          9 kB
          Jerry Carter
        2. patch.txt
          6 kB
          Dianne Richards
        3. openjpa1562.tar.zip
          7 kB
          Jerry Carter

          Activity

            People

            • Assignee:
              dianner Dianne Richards
              Reporter:
              no1uno Jerry Carter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: