OpenJPA
  1. OpenJPA
  2. OPENJPA-1562

EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development