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. simple_entity_tests.txt
        9 kB
        Jerry Carter
      2. patch.txt
        6 kB
        Dianne Richards
      3. openjpa1562.tar.zip
        7 kB
        Jerry Carter

        Activity

        Jerry Carter created issue -
        Jerry Carter made changes -
        Field Original Value New Value
        Attachment simple_entity_tests.txt [ 12438524 ]
        Dianne Richards made changes -
        Assignee Dianne Richards [ dianner ]
        Jerry Carter made changes -
        Attachment openjpa1562.tar.zip [ 12438530 ]
        Jerry Carter made changes -
        Attachment openjpa1562.tar.zip [ 12438530 ]
        Jerry Carter made changes -
        Attachment openjpa1562.tar.zip [ 12438534 ]
        Jerry Carter made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Jerry Carter made changes -
        Resolution Invalid [ 6 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Jerry Carter made changes -
        Summary Basic negative tests of the EntityManager fail EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException
        Priority Major [ 3 ] Minor [ 4 ]
        Dianne Richards made changes -
        Attachment patch.txt [ 12438840 ]
        Donald Woods made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 2.0.0-beta3 [ 12314857 ]
        Resolution Fixed [ 1 ]
        Michael Dick made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development