[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Question about Teneo/Hibernate and Transactions

Hi,

How are transactions managed in the EMF/Teneo/Hibernate ressources?

Ie. is it possible to do following modifications between two ressource.save() calls?

* Delete an object which is referenced by another one by foreign key without deleting the referencing object.
* Create a new object to replace the deleted one.
* Make the reference point to the new object instead of the deleted one.


When doing that, I get a SQL exception stating that a foreign key constraint has been violated.
Will the three modifications, when done in three separate steps on the model, be executed as three separate operations (transactions) on the database?


Kind Regards,

Josef