cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: onPostAdd is called on CommitChanges...
Date Thu, 05 Jul 2012 13:31:20 GMT
Any chance you are using nested ObjectContexts? It appears the callback happens during commit
from child to parent context when a new object is created registered in parent.

Andrus

On Jul 5, 2012, at 4:03 PM, Bruno René Santos wrote:

> Here it goes:
> 
> MyClass.onPostAdd: 19
> Hidden Source Calls
> Method.invoke: 601
> CallbackOnEntity.performCallback: 46
> LifecycleCallbackEventHander.performCallbacks: 184
> LifecycleCallbackEventHander.performCallbacks: 151
> LifecycleCallbackRegistry..performCallbacks: 222
> BaseContext.injectInitialValue: 665
> DataContext.registerNewObject: 618
> ChildDiffLoader.nodeCreated: 116
> NodeCreateOperation.apply: 37
> CompoundDiff.apply: 91
> ObjectStoreGraphDiff.apply: 134
> DataContext.onContextFlush: 770
> BaseContext.onSync: 516
> DataContext.flushToParent: 817
> DataContext.commitChanges: 756
> 
> On Thu, Jul 5, 2012 at 1:17 PM, Andrus Adamchik <andrus@objectstyle.org>wrote:
> 
>> I guess you had an attachment here that was stripped off by the list
>> managing software. Can you post it as text?
>> 
>> On Jul 5, 2012, at 11:43 AM, Bruno René Santos wrote:
>> 
>>> Here goes the callstack for this problem when I call commitChanges()
>>> 
>>> ---------- Forwarded message ----------
>>> From: Bruno René Santos <brunorene@holos.pt>
>>> Date: Thu, Jul 5, 2012 at 12:27 AM
>>> Subject: onPostAdd is called on CommitChanges...
>>> To: user@cayenne.apache.org
>>> 
>>> 
>>> I am using Cayenne 3.1B1 and when I call commitChanges the callback
>> postAdd on one of my objects is called? Anyone can guess why?
>>> 
>>> Regards
>>> Bruno
>>> 
>>> --
>>> Bruno René Santos | brunorene@holos.pt | Gestor de Projectos | Analista
>> | Programador | Investigador
>>> 
>>> Holos - Soluções Avançadas em Tecnologias de Informação S.A.
>>> Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque
>>> Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal
>>> Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt
>>> 
>>> This email and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they are
>> addressed. If you are not the intended recipient or the person responsible
>> for delivering the email to the intended recipient, be advised that you
>> have received this email in error and that any use, dissemination,
>> forwarding, printing, or copying of this email is strictly prohibited. If
>> you have received this email in error please notify Bruno René Santos by
>> telephone on +351 210 438 686
>>> 
>>> 
>>> 
>>> --
>>> Bruno René Santos | brunorene@holos.pt | Gestor de Projectos | Analista
>> | Programador | Investigador
>>> 
>>> Holos - Soluções Avançadas em Tecnologias de Informação S.A.
>>> Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque
>>> Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal
>>> Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt
>>> 
>>> This email and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they are
>> addressed. If you are not the intended recipient or the person responsible
>> for delivering the email to the intended recipient, be advised that you
>> have received this email in error and that any use, dissemination,
>> forwarding, printing, or copying of this email is strictly prohibited. If
>> you have received this email in error please notify Bruno René Santos by
>> telephone on +351 210 438 686
>> 
>> 
>> 
> 
> 
> -- 
> Bruno René Santos | brunorene@holos.pt | Gestor de Projectos | Analista |
> Programador | Investigador
> 
> Holos - Soluções Avançadas em Tecnologias de Informação S.A.
> Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque
> Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal
> Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt
> 
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you are not the intended recipient or the person responsible for
> delivering the email to the intended recipient, be advised that you have
> received this email in error and that any use, dissemination, forwarding,
> printing, or copying of this email is strictly prohibited. If you have
> received this email in error please notify Bruno René Santos by telephone
> on +351 210 438 686


Mime
View raw message