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

EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-beta2
    • 2.0.0-beta3
    • None
    • None
    • 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. openjpa1562.tar.zip
          7 kB
          Jerry Carter
        2. patch.txt
          6 kB
          Dianne E. Richards
        3. simple_entity_tests.txt
          9 kB
          Jerry Carter

        Activity

          People

            dianner Dianne E. Richards
            no1uno Jerry Carter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: