Deleting objects [message #616041] |
Tue, 01 April 2008 07:15 |
Manfred Hahn Messages: 64 Registered: July 2009 |
Member |
|
|
Hi Martin,
when I delete an object in my gmf editor and later save the objects of the
model the following exception is thrown:
org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
de.edvchl.clic.workflow.impl.AktivitaetImpl@5043d6{#ff80808119050fff01190510ede20003}
The required feature 'prozess' of
'de.edvchl.clic.workflow.impl.AktivitaetImpl@5043d6{#ff80808119050fff01190510ede20003}'
must be set
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:409)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:347)
at
de.edvchl.clic.workflow.diagram.part.WorkflowDocumentProvide r$2.doExecute(WorkflowDocumentProvider.java:439)
at
org.eclipse.emf.transaction.RecordingCommand.execute(Recordi ngCommand.java:130)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:92)
The exception is ignored and the database delete is done later when I
close the application.
The exception diagnosis is right; the process is the container for the
activitaet, but I deleted the activitaet, so activitaet should not be
considered to be stored. At the moment of the delete there is no session
available to do a session.delete() on the object.
Do you have any idea how to handle this situation right?
gr. Manfred
|
|
|
Powered by
FUDForum. Page generated in 0.03224 seconds