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

Reply via email to