[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.riena] Re: Object transactions: register vs. registerNew

Like Stefan said,

the difference is the state that the registered object gets. The object transaction keeps a state if the object was brought in as "new" object or whether it was instantiate new but already existed in your persistentant store.

So later when you extract the Changes then you get the information whether that was an object that was new or existing in the first place.

hope that helps

christian


Stefan Liebig schrieb:
Hi Carsten,

As far as I know the difference is:
- with register() an object is registered that should not be tracked as a new object
- while registerNew() registers a new object which should be tracked


Tschüß,
Stefan

Carsten Spieker wrote:
Hi,

I wonder what the exact difference between IObjectTransaction#register() and #registerNew is? Can anyone give me a hint?

Thanks and greetz
Carsten