ObjectDB ObjectDB

Issue #562: Persist & remove in same transaction

Type: Bug ReoprtPriority: NormalStatus: FixedReplies: 1
#1

I have a test case (attached) which performs the following actions:

  1. Open a new transaction
  2. Create & persist a simple entity object, EntityManager is flushed, Transaction is not committed
  3. Count the number of simple entity objects in the database
  4. Retrieve the simple entity object using find by id
  5. Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed
  6. Count the number of simple entity objects in the database
  7. Commit the transaction

The count operations in step 3 & 6 both return 1 but I would've expected step 6 to return 0.

Could you let me know if this is a bug you can fix or whether my expectation is incorrect (and if so, is there a workaround)? Thanks

edit
delete
#2

Thank you for the report and for the test program. Build 2.3.2_07 fixes the bug.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.