|
|
Re: Object transactions: register vs. registerNew [message #24800 is a reply to message #24764] |
Tue, 21 April 2009 13:46  |
Eclipse User |
|
|
|
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
>>
|
|
|
Re: Object transactions: register vs. registerNew [message #581922 is a reply to message #24726] |
Tue, 21 April 2009 05:59  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Re: Object transactions: register vs. registerNew [message #581943 is a reply to message #24764] |
Tue, 21 April 2009 13:46  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03938 seconds