104 words

The exception "Attempt to remove a detached entity object" have no information about the entity

#1
2017-03-22 12:50

Hello,

the exception "Attempt to remove a detached entity object" have no information about the detached entity.

It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.

 

It would be very helpful if you can add a few information to the Exception.

Maybe: The class of the Entity and the id (Field annotated with @ID), or just the String representation of the entity.

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #178
#2
2017-03-23 10:15

Build 2.7.0_02 improves the error message in these exception to include the information as your suggestion.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,718
#3
2017-03-24 10:28

Thank you very much. That's very helpful.
 

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #181

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