|[Teneo] Setting an object as 'new' in Teneo/Hibernate [message #604793]
||Tue, 17 April 2007 18:46
| Mark Geib
Registered: July 2009
In order to support 'undo' for delete operations in my editor I need to be
able to re-save an object that has been deleted from the database. If a
user deletes an object, does a save, the object is deleted fine. However,
if the user then subsequently 'undoes' the delete the 'undo' code re-adds
the object. The problem is that the next save fails with a message that
the row has been deleted or modified by another transaction.
I suspect that the object saved in memory has a signature that makes it
appear as though it exists in the database. I think I need to make the
object appear as a new object so that it can be added to the database as a
Is this possible.??
Powered by FUDForum
. Page generated in 0.01583 seconds