Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Setting an object as 'new' in Teneo/Hibernate
[Teneo] Setting an object as 'new' in Teneo/Hibernate [message #604793] Tue, 17 April 2007 18:46
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member

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
new row.

Is this possible.??

Previous Topic:[Teneo] correct version for Eclipse 3.2.2 ??
Next Topic:Serialize EMF Model using namespace prefix
Goto Forum:

Current Time: Tue Oct 20 01:22:22 GMT 2020

Powered by FUDForum. Page generated in 0.01583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top