|
|
|
|
Re: [Teneo] Problems with EMF delete [message #420716 is a reply to message #420690] |
Tue, 08 July 2008 15:38 |
Florian Hackenberger Messages: 123 Registered: July 2009 |
Senior Member |
|
|
Martin Taal wrote:
> What is a bit strange is that the jdo remove is done when a resource is
> saved and not when an object is removed from the resource. Can you track
> when the jdo remove takes place?
I don't think that the object is removed from the database, it is probably
simply detached from the persistence backend. The relevant stack trace is:
EListWrapper<E>.didRemove(int, E) line: 741
EListWrapper<E>(DelegatingEList<E>).remove(int) line: 810
EListWrapper<E>(DelegatingNotifyingListImpl<E>).doRemove(int) line: 745
EListWrapper<E>(DelegatingNotifyingListImpl<E>).remove(int) line: 696
RemoveCommand.doExecute() line: 326
RemoveCommand(AbstractOverrideableCommand).execute() line: 129
EListWrapper is org.eclipse.emf.teneo.jpox.elist.EListWrapper
and it calls:
obj = jdoDelegate.remove(index);
within didRemove(), where jdoDelegate is an org.jpox.sco.ArrayList
As far as I can tell from the ArrayList documentation, a call to remove
detaches the object from the list (which is the list containing all
directly displayed model objects in my resource) and probably from the
persistence manager.
Before this call the object looks like this:
org.acoveo.callcenter.masterdata.impl.AgentImpl@1bb02e (name: test, id: 31)
(agentId: 1234, password: 4321, voicemailboxTimeout: 20, email: ,
sendVoicemailToEmail: true)
afterward I get the following message in the debugger when trying to display
it:
com.sun.jdi.InvocationException occurred invoking method.
Cheers,
Florian
--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03101 seconds