openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Defoy" <christian.de...@gmail.com>
Subject Re: OpenJPA is not inserting the parent reference on update
Date Mon, 13 Aug 2007 19:21:27 GMT
Hi!

I managed to get around the problem by invoking manager.remove() on my
Attachment object before replacing it with the one.  It seems to work
so far...

Prior to that, I was almost successfull by detaching my Shape object
prior to replacing its Attachment object.  But then, when the
Attachment object was deleted (marked with @Dependent), it sometimes
came before the Note objects and since there is a cascade delete in
the db, an exception was thrown for optimistic lock failure...

Christian

Mime
View raw message