131 words

Issue #86 - Persist & remove in same transaction

BugVersion: Priority: NormalStatus: FixedReplies: 1
#1
2011-11-08 17:47

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

felixobjectdb
felixobjectdb's picture
Joined on 2011-02-10
User Post #67
#2
2011-11-09 01:52

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

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #708

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel